logout method

Future<void> logout()

Implementation

Future<void> logout() async {
  final result = await _authService.logout();
  await result.when(
    success: (_) async => _signOut(),
    failure: (_) async => _signOut(),
  );
}