sortList property

List<DaviSort> sortList

The list of sorts. The list is sorted by priority.

Implementation

List<DaviSort> get sortList {
  List<DaviSort> list = [];
  for (DaviColumn<DATA> column in sortedColumns) {
    final DaviSort? sort = column.sort;
    if (sort == null) {
      throw StateError('Column sort should not be null.');
    }
    list.add(sort);
  }
  return list;
}