DyListViewController<T> class
- Inheritance
-
- Object
- ChangeNotifier
- DyListViewController
Constructors
-
DyListViewController.new({int pageStart = 0, ScrollController? scrollController, Axis direction = Axis.vertical, required void refreshStateParentWidget(), List<
DyItemData< filterListData(List<T> >DyItemData< )?, List<T> >DyDataGroup> groupListData(List<DyItemData< )?, required Future<T> >List< fetchData(DyFetchParam, DyFetchCustomParam?), bool isSameItemData(DyItemData<DyItemData< >T> >T> , T)?, DyFetchCustomParamConfig? customParamOnFetchConfig})
Properties
- customParamOnFetchConfig ↔ DyFetchCustomParamConfig?
-
custom paramter to passing when fetch data when reload
getter/setter pair
- direction ↔ Axis
-
List direction of this list, vertical or horizontal mode
getter/setter pair
- error ↔ Object?
-
Error message
getter/setter pair
-
filterListData
↔ List<
DyItemData< Function(List<T> >DyItemData< )?T> > -
Function to filter current List data
getter/setter pair
-
groupListData
↔ List<
DyDataGroup> Function(List<DyItemData< )?T> > -
Function to generate Group of List from List item data
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- hasNextPage ↔ bool
-
Indicator if list has more item to load on next page
getter/setter pair
- isLoading ↔ bool
-
Indicator flag in loading on process fetch data of first page
getter/setter pair
- isLoadingNextPage ↔ bool
-
Indicator flag in loading on process fetch data of next page
getter/setter pair
-
isSameItemData
↔ bool Function(DyItemData<
T> , T)? -
Function to check if item on Data is same as Data from fetch
getter/setter pair
- isScrollControllerOutside → bool
-
Flag for scroll controller from outside
final
- isSelectedAllItem ↔ bool
-
Flag is state of all item is Selected
getter/setter pair
-
item
↔ List<
DyItemData< T> > -
List item data
getter/setter pair
- page ↔ int
-
Current last page of the list
getter/setter pair
- pageStart ↔ int
-
Index page to start
getter/setter pair
-
refreshIndicatorKey
↔ GlobalKey<
RefreshIndicatorState> ? -
getter/setter pair
- refreshStateParentWidget ↔ void Function()
-
Function to trigger setState parent widget from this controller
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scroll → ScrollController
-
ScrollController for this list
final
- totalSelected ↔ int
-
Total item with status selected
getter/setter pair
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Utility Helper to generate Group data
override
-
fetch(
{bool isLastPage = false, bool isFetchFirstPage = false, DyFetchCustomParam? customParameter}) → Future< void> - This function is for fetch data for first page
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
reset(
) → void - Function to reset page state to initial state
-
selectAllItem(
{required bool isSetToSelected}) → void - Function to select or unselect all item
-
selectItem(
{required DyItemData< T> data, required bool isSetToSelected}) → void - Function to select or unselect all item
-
setCurrentPageAsLastPage(
) → void - Function to manually set current page as last page
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited