logout method

Future<void> logout()

Implementation

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