maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult idle()?,
  2. TResult refreshing()?,
  3. TResult refreshingCompleted()?,
  4. TResult refreshingFailed()?,
  5. TResult loading()?,
  6. TResult loadingCompleted()?,
  7. TResult loadingFailed(
    1. String? errorMessage
    )?,
  8. TResult noMoreData()?,
  9. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function()? idle,
  TResult Function()? refreshing,
  TResult Function()? refreshingCompleted,
  TResult Function()? refreshingFailed,
  TResult Function()? loading,
  TResult Function()? loadingCompleted,
  TResult Function(String? errorMessage)? loadingFailed,
  TResult Function()? noMoreData,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;