mapOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  1. TResult? idle(
    1. GammaIdle value
    )?,
  2. TResult? refreshing(
    1. GammaRefreshing value
    )?,
  3. TResult? refreshingCompleted(
    1. GammaRefreshingCompleted value
    )?,
  4. TResult? refreshingFailed(
    1. GammaRefreshingFailed value
    )?,
  5. TResult? loading(
    1. GammaLoading value
    )?,
  6. TResult? loadingCompleted(
    1. GammaLoadingCompleted value
    )?,
  7. TResult? loadingFailed(
    1. GammaLoadingFailed value
    )?,
  8. TResult? noMoreData(
    1. GammaNoMoreData value
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  TResult? Function(GammaIdle value)? idle,
  TResult? Function(GammaRefreshing value)? refreshing,
  TResult? Function(GammaRefreshingCompleted value)? refreshingCompleted,
  TResult? Function(GammaRefreshingFailed value)? refreshingFailed,
  TResult? Function(GammaLoading value)? loading,
  TResult? Function(GammaLoadingCompleted value)? loadingCompleted,
  TResult? Function(GammaLoadingFailed value)? loadingFailed,
  TResult? Function(GammaNoMoreData value)? noMoreData,
}) =>
    throw _privateConstructorUsedError;