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