logout method

  1. @override
Future<void> logout()

Sends a logout command to the node and clears all local data, including all persistent data from the store.

Implementation

@override
Future<void> logout() async {
  try {
    await super.logout();
  } catch (e, s) {
    Logs().e('Logout failed', e, s);
    rethrow;
  } finally {
    await clear();
  }
}