| 1234567891011121314151617181920212223 |
- import 'package:flutter/material.dart';
- class OptionModel<T> {
- final T value;
- final String label;
- final IconData? icon;
-
- const OptionModel({
- required this.value,
- required this.label,
- this.icon,
- });
-
- @override
- bool operator ==(Object other) =>
- identical(this, other) ||
- other is OptionModel &&
- runtimeType == other.runtimeType &&
- value == other.value;
-
- @override
- int get hashCode => value.hashCode;
- }
|