SelectableItem<T> class
Represents an item that can be selected in the SelectableItemBottomSheet.
Constructors
- SelectableItem({required String title, bool isSelected = false, T? value})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSelected ↔ bool
-
Indicates whether the item is currently selected.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
The title of the selectable item.
final
- value → T?
-
The value associated with the selectable item.
final
Methods
-
copyWith(
{String? title, bool? isSelected, T? value}) → SelectableItem< T> - Creates a copy of the SelectableItem with optional parameter overrides.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited