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