EasyTableModel<ROW> class

The EasyTable model.

The type ROW represents the data of each row.

Inheritance

Constructors

EasyTableModel({List<ROW> rows = const [], List<EasyTableColumn<ROW>> columns = const []})
factory

Properties

columnInResizing EasyTableColumn<ROW>?
getter/setter pair
columnsLength int
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
isColumnsEmpty bool
no setter
isColumnsNotEmpty bool
no setter
isMultiSorted bool
Indicates whether the model is sorted by multiple columns.
no setter
isOriginalRowsEmpty bool
no setter
isOriginalRowsNotEmpty bool
no setter
isRowsEmpty bool
no setter
isRowsNotEmpty bool
no setter
isSorted bool
Indicates whether the model is sorted.
no setter
originalRowsLength int
no setter
rowsLength int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sortedColumns List<EasyTableColumn<ROW>>
Gets the sorted columns.
no setter

Methods

addColumn(EasyTableColumn<ROW> column) → void
addColumns(Iterable<EasyTableColumn<ROW>> columns) → void
addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
addRow(ROW row) → void
addRows(Iterable<ROW> rows) → void
clearSort() → void
Revert to original sort order
columnAt(int index) EasyTableColumn<ROW>
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
multiSortByColumn(EasyTableColumn<ROW> column) → void
Updates the multi sort given a column.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
notifyUpdate() → void
Notifies any row data update by calling all the registered listeners.
removeColumn(EasyTableColumn<ROW> column) → void
removeColumnAt(int index) → void
removeColumns() → void
Remove all columns.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
removeRow(ROW row) → void
removeRowAt(int index) → void
removeRows() → void
Remove all rows.
replaceRows(Iterable<ROW> rows) → void
rowAt(int index) → ROW
sort(List<ColumnSort> columnSorts) → void
Defines the columns that will be used in sorting.
sortByColumn({required EasyTableColumn<ROW> column, required TableSortOrder sortOrder}) → void
Sort given a column.
sortByColumnIndex({required int columnIndex, required TableSortOrder sortOrder}) → void
Sort given a column index.
toString() String
A string representation of this object.
inherited

Operators

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