clear method

Future<void> clear()

Implementation

Future<void> clear() async {
  assert(_box != null, 'the store is not connected');

  await _box!.deleteAll(_box!.keys);

  _notifyChangesListeners(TStoreChangeType.deleteAll);
}