logout method

  1. @override
Future<bool> logout(
  1. BuildContext context
)

Log out the currently logged in user. Returns true if the logout was successful, false if it was not.

Implementation

@override
Future<bool> logout(
  BuildContext context,
) async {
  try {
    await auth.signOut();
    return true;
  } on FirebaseAuthException catch (_) {
    return false;
  }
}