clear method

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

Clears the stored chats.

Implementation

@override
Future<void> clear() {
  Log.debug('clear()', '$runtimeType');

  for (var c in chats.entries) {
    c.value.dispose();
  }

  chats.clear();
  paginated.clear();

  return _chatLocal.clear();
}