clear method

Future<void> clear()

Clears the cache and emits an empty state to the repository stream.

Implementation

Future<void> clear() async {
  _controller.add(const RepositoryState.empty());
  await clearCache();
}