set method
Replaces the active dataset sort and rebuilds the dataset view.
Implementation
Future<bool> set(List<FdcDataSetSort> sorts, {bool notify = true}) {
if (!_canApplyViewOperation()) {
return Future<bool>.value(false);
}
final normalizedSorts = _normalizeSorts(sorts);
if (_useAsyncViewOperations()) {
return _replaceSortsAsync(normalizedSorts, notify: notify);
}
return Future<bool>.value(_replaceSorts(normalizedSorts, notify: notify));
}