PagedDataTableController<TKey extends Object, TResult extends Object> class Null safety

Represents a controller of a PagedDataTable

Constructors

PagedDataTableController()

Properties

currentDataset Iterable<TResult>
Returns the current showing dataset elements.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

dispose() → void
getFilter(String filterName) → dynamic
Gets the value of a filter
getFilters() Map<String, dynamic>
Returns a Map where each key is the field name and its value the current field's value
getSelectedRows() List<TResult>
Gets all the selected rows in the current resultset
modifyRowsValue(bool predicate(TResult element), void update(TResult item)) → void
Updates every item from the current resultset that matches predicate and rebuilds it.
modifyRowValue(int rowIndex, void update(TResult item)) → void
Updates an item from the current resultset located at rowIndex and rebuilds the row.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
refresh({bool currentDataset = true}) → void
Refreshes the table clearing the cache and fetching from source again. If currentDataset is true, it will only refresh the current viewing resultset, otherwise, it will clear the local cache and start from page 1.
refreshRow(int rowIndex) → void
Rebuilds the row at the specified rowIndex to reflect changes to the item.
refreshRowWhere(bool predicate(TResult element)) → void
Builds every row that matches predicate.
removeFilter(String id) → void
Removes a filter and fetches items from source.
removeFilters() → void
Removes any applied filter.
removeRow(TResult element) → void
Removes the row containing element. Keep in mind this will work only if TResult defines a custom hashcode implementation.
selectRow(int index) → void
Marks the row at index as selected
setFilter(String id, dynamic value) → void
Sets a filter and fetches items from source.
toString() String
A string representation of this object.
inherited
unselectAllRows() → void
Unselects any selected row in the current resultset

Operators

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