whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<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()?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<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,
}) =>
    throw _privateConstructorUsedError;