AuthenticationRepository constructor

AuthenticationRepository({
  1. CacheClient? cache,
  2. FirebaseAuth? firebaseAuth,
  3. GoogleSignIn? googleSignIn,
  4. FacebookAuth? facebookAuth,
})

Repository which manages user authentication.

Implementation

AuthenticationRepository({
  CacheClient? cache,
  FirebaseAuth? firebaseAuth,
  GoogleSignIn? googleSignIn,
  FacebookAuth? facebookAuth,
})  : _cache = cache ?? CacheClient(),
      _firebaseAuth = firebaseAuth ?? FirebaseAuth.instance,
      _googleSignIn = googleSignIn ?? GoogleSignIn.standard(),
      _facebookAuth = facebookAuth ?? FacebookAuth.instance;