clear method

Future<void> clear()

Empties the local store and the log, as signing out does.

Implementation

Future<void> clear() async {
  await _database.execute('DELETE FROM ${table.table}');
  await _database.execute('DELETE FROM $logTable');
  await _database.execute('DELETE FROM $serverTable');
  _states.clear();
}