Skip to content

Commit

Permalink
docs(firebase_login): improve inline api docs in `authentication_repo…
Browse files Browse the repository at this point in the history
…sitory.dart` (felangel#3833)
  • Loading branch information
amoslai5128 authored May 27, 2023
1 parent 64bc88b commit e0fdb60
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:google_sign_in/google_sign_in.dart';
import 'package:meta/meta.dart';

/// {@template sign_up_with_email_and_password_failure}
/// Thrown if during the sign up process if a failure occurs.
/// Thrown during the sign up process if a failure occurs.
/// {@endtemplate}
class SignUpWithEmailAndPasswordFailure implements Exception {
/// {@macro sign_up_with_email_and_password_failure}
Expand Down Expand Up @@ -165,7 +165,7 @@ class AuthenticationRepository {
final GoogleSignIn _googleSignIn;

/// Whether or not the current environment is web
/// Should only be overriden for testing purposes. Otherwise,
/// Should only be overridden for testing purposes. Otherwise,
/// defaults to [kIsWeb]
@visibleForTesting
bool isWeb = kIsWeb;
Expand Down Expand Up @@ -274,6 +274,7 @@ class AuthenticationRepository {
}

extension on firebase_auth.User {
/// Maps a [firebase_auth.User] into a [User].
User get toUser {
return User(id: uid, email: email, name: displayName, photo: photoURL);
}
Expand Down

0 comments on commit e0fdb60

Please sign in to comment.