initialize method

  1. @override
Future<void> initialize ()
override

Implementation

@override
Future<void> initialize() async {
  authProvider = FirebaseAuth.instance;
  _googleSignIn = GoogleSignIn();
  authProvider.authStateChanges().listen((User user) {
    _currentUser = user;
    if (user == null) {
      setSignOutState();
    } else {
      setSignInState();
    }
  });
}