Created
April 26, 2019 02:19
-
-
Save felangel/9ecf5f28b3e14076285f0a5070f5a3cd to your computer and use it in GitHub Desktop.
[flutter_firebase_login] User Repository (1)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:firebase_auth/firebase_auth.dart'; | |
import 'package:google_sign_in/google_sign_in.dart'; | |
class UserRepository { | |
final FirebaseAuth _firebaseAuth; | |
final GoogleSignIn _googleSignIn; | |
UserRepository({FirebaseAuth firebaseAuth, GoogleSignIn googleSignin}) | |
: _firebaseAuth = firebaseAuth ?? FirebaseAuth.instance, | |
_googleSignIn = googleSignin ?? GoogleSignIn(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment