flagStatus property

FlagStatus get flagStatus

Implementation

FlagStatus get flagStatus {
  return _flagStatus;
}
set flagStatus (FlagStatus newValue)

Implementation

set flagStatus(FlagStatus newValue) {
  if (newValue != this._flagStatus) {
    this._flagStatus = newValue;
    _onFlagStatusChanged?.call(this.flagStatus);
  }

  // Og the state is required then trigger also the required callback
  if (newValue == FlagStatus.FETCH_REQUIRED) {
    _onFlagStatusFetchRequired?.call(this._fetchReasons);
  } else if (newValue == FlagStatus.FETCHED) {
    // If the state is fetched then trigger the callback fetched
    _onFlagStatusFetched?.call();
  }
}