logout method

  1. @override
Future<Result<void>> logout()
override

Ends the session on the server. Local data is cleared by the flows even when this fails.

Implementation

@override
Future<Result<void>> logout() async {
  logoutCalls++;
  await _answer();
  return const Success(null);
}