logout method

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

Implementation

@override
Future<AuthResult<void>> logout() async {
  try {
    await _auth.signOut();
    return const AuthResult.success(null);
  } on fb.FirebaseAuthException catch (e) {
    return AuthResult.failure(AuthException.fromFirebase(e));
  }
}