FdcSortBuilder class
Fluent builder for dataset sorting.
Use FdcDataSet.sort.sortBy to create it:
await dataSet.sort
.sortBy('lastName').ascending
.sortBy('firstName').descending
.apply();
Direction properties only build the sort expression. Call apply() to
validate and rebuild the dataset view in one step.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
items
→ List<
FdcDataSetSort> -
Returns the current items.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
apply(
) → Future< bool> - Validates and applies the composed sort expression to the dataset.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sortBy(
String fieldName) → FdcSortOrderStep -
Adds
fieldNameas the next sort priority and returns its direction step. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited