FRouteState constructor

FRouteState({
  1. AuthUserProfile? loggedIn,
  2. bool? isInitted,
  3. int? initialTab,
  4. 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);
}