maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult data(
    1. List<T> items
    )?,
  2. TResult loading()?,
  3. TResult error(
    1. Object? e,
    2. StackTrace? stk
    )?,
  4. TResult onGoingLoading(
    1. List<T> items
    )?,
  5. TResult onGoingError(
    1. List<T> items,
    2. Object? e,
    3. StackTrace? stk
    )?,
  6. 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;