maybeWhen<TResult extends Object?> method
TResult
maybeWhen<TResult extends Object?>({
- TResult data(
- List<
T> items
- List<
- TResult loading()?,
- TResult error(
- Object? e,
- StackTrace? stk
- TResult onGoingLoading(
- List<
T> items
- List<
- TResult onGoingError(
- List<
T> items, - Object? e,
- StackTrace? stk
- List<
- required TResult orElse(),
inherited
Implementation
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function(List<T> items)? data,
TResult Function()? loading,
TResult Function(Object? e, StackTrace? stk)? error,
TResult Function(List<T> items)? onGoingLoading,
TResult Function(List<T> items, Object? e, StackTrace? stk)? onGoingError,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;