reload method

  1. @override
Future<void> reload({
  1. bool keepOffset = false,
  2. bool keepSelection = false,
})
override

Implementation

@override
Future<void> reload({bool keepOffset = false, bool keepSelection = false}) async {
  final opId = const Uuid().v4();
  _currentOperationId = opId;

  super.reload(keepOffset: keepOffset);

  loading = true;

  _items = await fetcher();

  if (_currentOperationId != opId) {
    return;
  }

  _maxItems = _items.length;

  loading = false;
}