reset method

Future<void> reset()

Implementation

Future<void> reset() async {
  await _operation?.cancel();
  state = state.copyWith(
    data: _initial,
    updatedAt: DateTime.now(),
    loading: false,
  );
  _box.delete(key);
}