setSort method

  1. @internal
void setSort(
  1. DaviSort sort,
  2. int priority
)

Implementation

@internal
void setSort(DaviSort sort, int priority) {
  if (sort.columnId != id) {
    throw ArgumentError.value(sort.columnId, null,
        'The columnId does not have the same value as the column identifier.');
  }
  if (!sortable) {
    throw ArgumentError('Column is not sortable.');
  }
  _sort = sort;
  _sortPriority = priority;
}