initialRoute property Null safety
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';
}