FlexSortController class
Controller for being able to sort rows by the values in a single column.
Constructors
- FlexSortController({required FlexTableController controller, bool tristate = false})
- Constructs the controller with the FlexTableController to be able to communicate with the FlexTable.
Properties
- ascending → bool
-
Returns whether the list is sorted in ascending order (Z at the top, A at
the bottom) or descending order (A at the top, Z at the bottom).
no setter
- columnIndex → int?
-
Returns the column index to use for sorting.
no setter
- controller → FlexTableController
-
The controller given to the FlexTable that this should interact with.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ Stream<
void> -
The event stream that can be listened to for when sort events are
triggered.
no setter
- tristate → bool
-
Defines whether the sort is tristate. Tristate means that it will switch
from ascending to descending to disabled. When this is false it will only
switch between ascending and descending.
final
Methods
-
dispose(
) → void - Disposes the controller.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
int? index, bool ascending) → void -
Updates the sort order for the FlexTable. If
indexis null, then sorting will be disabled.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited