signInAnonymously method

  1. @override
Future<User?> signInAnonymously({
  1. Function? onSuccessOption,
  2. Function? catchErrorOption,
})
override

Implementation

@override
Future<User?> signInAnonymously({
  Function? onSuccessOption,
  Function? catchErrorOption,
}) async {
  try {
    UserCredential credential = await auth.signInAnonymously();
    onSuccessOption;
    return credential.user;
  } catch (e) {
    catchOnError(' Sign In Anonimously was Error: $e',
        catchErrorOption: catchErrorOption);
  }
  return null;
}