FRouteState constructor
FRouteState({
- AuthUserProfile? loggedIn,
- bool? isInitted,
- int? initialTab,
- required Stream<
AuthUserProfile> ? userChanges,
Implementation
FRouteState({
AuthUserProfile? loggedIn,
bool? isInitted,
int? initialTab,
required Stream<AuthUserProfile>? userChanges,
}) : _loggedIn = null,
_currTab = initialTab,
_isInitted = false {
if (loggedIn != null) {
this.loggedIn = loggedIn;
}
_sub = userChanges?.listen((event) {
log.info("Got user update: $event");
_isInitted = true;
this.loggedIn = event;
}, cancelOnError: false);
}