DyItemData<T> class
Constructors
- DyItemData({required T data, required bool isSelected, int page = -1, DyItemDataSource source = DyItemDataSource.server})
- Group item information
Properties
- data ↔ T
-
Data of list item
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSelected ↔ bool
-
Flag for is current item selected
getter/setter pair
- page ↔ int
-
Current Page of list item
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source ↔ DyItemDataSource
-
Type of data source where item come from
getter/setter pair
Methods
-
checkIsDataOnSelectedList(
T data, List< T> selectedList, {required bool compareSelectedData(T, T)}) → bool - function to check if data in selected list
-
copyWith(
{T? data, bool? isSelected, int? page, DyItemDataSource? source}) → DyItemData< T> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setIsSelectedBySelectedList(
List< T> selectedList, {required bool compareSelectedData(T, T)}) → void - function to check if current item data, same as prev selected data
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited