InfiniteGroupedListController<ItemType, GroupBy, GroupTitle> class

This is the controller for the InfiniteGroupedList.

Use this controller to :

  1. Get the items in the list.
  2. Retry the last failed load more call.
  3. Refresh the list.

Constructors

InfiniteGroupedListController({int limit = 20})
The constructor for the controller.

Properties

getItemsCallback ↔ (List<ItemType> Function()?)
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
limit int
The limit of items to fetch in a single call.
getter/setter pair
loadItemsCallback ↔ (Future<void> Function()?)
getter/setter pair
refreshCallback ↔ (Future<void> Function()?)
getter/setter pair
removeCallback ↔ (void Function(ItemType item)?)
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getItems() List<ItemType>
Call this function to get the items in the list.
loadItems() Future<void>
Call this function to programmatically fetch the next page
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refresh() Future<void>
Refresh the list.
remove(ItemType item) → void
Remove an item from the list.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited