TableDataSource<M extends Object> class
- Inheritance
-
- Object
- ChangeNotifier
- TableDataSource
Constructors
-
TableDataSource({required TableLoader<
M> loader, required List<TableColumn< columns, required TableActionsType actions, required int pageSize})M> >
Properties
- actionsType ↔ TableActionsType
-
getter/setter pair
-
columns
↔ List<
TableColumn< M> > -
getter/setter pair
-
config
↔ TableDatasourceConfig<
M> -
getter/setter pair
- currentPage → int
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
-
loader
→ TableLoader<
M> -
final
- pageSize → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectedItems
↔ List<
M> -
getter/setter pair
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
addOrRemoveItem(
M item) → void -
clearSelection(
) → void -
currentItemAt(
int index) → (M?, bool) -
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
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
-
replaceItem(
ItemPosition position, M item) → void -
reset(
{bool keepOffset = false}) → Future< void> -
setActionsType(
TableActionsType actionsType) → void -
setColumns(
List< TableColumn< columns) → voidM> > -
setLoading(
bool loading) → void -
setPage(
int page) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited