IndicatorStatusModelPatterns extension

Adds pattern-matching-related methods to IndicatorStatusModel.

on

Methods

map<TResult extends Object?>({required TResult none(IndicatorStatusModelWithNone value), required TResult empty(IndicatorStatusModelWithEmpty value), required TResult loadingMoreBusying(IndicatorStatusModelWithLoadingMoreBusying value), required TResult fullScreenBusying(IndicatorStatusModelWithFullScreenBusying value), required TResult error(IndicatorStatusModelWithError value), required TResult fullScreenError(IndicatorStatusModelWithFullScreenError value), required TResult noMoreLoad(IndicatorStatusModelWithNoMoreLoad value)}) → TResult

Available on IndicatorStatusModel, provided by the IndicatorStatusModelPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>({TResult? none(IndicatorStatusModelWithNone value)?, TResult? empty(IndicatorStatusModelWithEmpty value)?, TResult? loadingMoreBusying(IndicatorStatusModelWithLoadingMoreBusying value)?, TResult? fullScreenBusying(IndicatorStatusModelWithFullScreenBusying value)?, TResult? error(IndicatorStatusModelWithError value)?, TResult? fullScreenError(IndicatorStatusModelWithFullScreenError value)?, TResult? noMoreLoad(IndicatorStatusModelWithNoMoreLoad value)?}) → TResult?

Available on IndicatorStatusModel, provided by the IndicatorStatusModelPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>({TResult none(IndicatorStatusModelWithNone value)?, TResult empty(IndicatorStatusModelWithEmpty value)?, TResult loadingMoreBusying(IndicatorStatusModelWithLoadingMoreBusying value)?, TResult fullScreenBusying(IndicatorStatusModelWithFullScreenBusying value)?, TResult error(IndicatorStatusModelWithError value)?, TResult fullScreenError(IndicatorStatusModelWithFullScreenError value)?, TResult noMoreLoad(IndicatorStatusModelWithNoMoreLoad value)?, required TResult orElse()}) → TResult

Available on IndicatorStatusModel, provided by the IndicatorStatusModelPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>({TResult none()?, TResult empty(RefreshBase refreshBase)?, TResult loadingMoreBusying()?, TResult fullScreenBusying()?, TResult error(Object? error, StackTrace? stackTrace, RefreshBase refreshBase)?, TResult fullScreenError(Object? error, StackTrace? stackTrace, RefreshBase refreshBase)?, TResult noMoreLoad()?, required TResult orElse()}) → TResult

Available on IndicatorStatusModel, provided by the IndicatorStatusModelPatterns extension

A variant of when that fallback to an orElse callback.
when<TResult extends Object?>({required TResult none(), required TResult empty(RefreshBase refreshBase), required TResult loadingMoreBusying(), required TResult fullScreenBusying(), required TResult error(Object? error, StackTrace? stackTrace, RefreshBase refreshBase), required TResult fullScreenError(Object? error, StackTrace? stackTrace, RefreshBase refreshBase), required TResult noMoreLoad()}) → TResult

Available on IndicatorStatusModel, provided by the IndicatorStatusModelPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>({TResult? none()?, TResult? empty(RefreshBase refreshBase)?, TResult? loadingMoreBusying()?, TResult? fullScreenBusying()?, TResult? error(Object? error, StackTrace? stackTrace, RefreshBase refreshBase)?, TResult? fullScreenError(Object? error, StackTrace? stackTrace, RefreshBase refreshBase)?, TResult? noMoreLoad()?}) → TResult?

Available on IndicatorStatusModel, provided by the IndicatorStatusModelPatterns extension

A variant of when that fallback to returning null