FlexTableController class

Controller to provide programmatic control over a FlexTable.

Constructors

FlexTableController({FlexTableFilterer? filterFn, FlexTableSorter? sortFn})
Controller for a FlexTable.

Properties

allRows → List<FlexTableRow>
Returns all the rows known by the FlexTable. This will ignore any current filter or sort and will maintain it's order based on the order the values were inserted. The returned list will be unmodifiable.
no setter
columnSizes → List<FlexTableColumnSize>
Returns the current size values for all columns.
no setter
columnStream → Stream<void>
The event Stream that can be listened to for column events. Whenever a modification is performed on a column, an event will be fired.
no setter
hashCode → int
The hash code for this object.
no setterinherited
rows → List<FlexTableRow>
Contains all the rows that match any current filter and sorted in the defined sort order. The returned list will be unmodifiable.
no setter
rowStream → Stream<void>
The event Stream that can be listened to for row events. Whenever a modification is performed on any row, an event will be fired.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addRow(FlexTableRow row) → void
Adds a row to the bottom / end of the FlexTable. This will fire an event that can be listened for on the rowStream.
addRows(Iterable<FlexTableRow> rows) → void
Adds one or more rows to the bottom / end of the FlexTable. This will fire a single event to the rowStream after all the rows have been added.
dispose() → void
Disposes the controller and frees up its resources.
filter(int? index, String? value) → void
Sets the current filter and applies it to the FlexTable. If either the index or value is set to null, this will disable the sorting.
insertRow(int index, FlexTableRow row) → void
Inserts a single row to the FlexTable at the index. The index is based on the allRows.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeRow(FlexTableRow row) → void
Remove the row from the FlexTable. This will post an event to the rowStream if the row is removed.
removeRowAt(int index) → void
Removes a row at the given index. The index is based on the allRows list and not the rows list. This will post an event to the rowStream when the row is removed;
removeRows(Iterable<FlexTableRow> rows) → void
Removes the given rows from the FlexTable.
setRows(Iterable<FlexTableRow> rows) → void
Removes all the existing data from the table and replaces it with the given rows.
sort(int? index, bool ascending) → void
Sets the current sort and applies it to the FlexTable. If the index is null, this will disable the sorting.
toString() → String
A string representation of this object.
inherited

Operators

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