isSorted property
bool
isSorted
Indicates whether the model is sorted.
The model will be sorted if it has at least one sorted column.
Implementation
bool get isSorted =>
_columns.firstWhereOrNull((column) => column.sort != null) != null
? true
: false;