whenOrNull<TResult extends Object?> method
TResult?
whenOrNull<TResult extends Object?>({
- TResult? idle()?,
- TResult? refreshing()?,
- TResult? refreshingCompleted()?,
- TResult? refreshingFailed()?,
- TResult? loading()?,
- TResult? loadingCompleted()?,
- TResult? loadingFailed(
- String? errorMessage
- 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;