initialRoute property Null safety

String initialRoute

Implementation

String get initialRoute {
  final auth = FirebaseAuth.instance;
  if (auth.currentUser == null || auth.currentUser!.isAnonymous) {
    return '/';
  }
  if (!auth.currentUser!.emailVerified && auth.currentUser!.email != null) {
    return '/verify-email';
  }
  return '/profile';
}