clear method

  1. @override
Future<void> clear()
override

Clears all data from the storage.

Implementation

@override
Future<void> clear() async {
  if (await _root.exists()) {
    await _root.delete(recursive: true);
  }
  await _root.create(recursive: true);
}