when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult data(
    1. List<T> items
    ),
  2. required TResult loading(),
  3. required TResult error(
    1. Object? e,
    2. StackTrace? stk
    ),
  4. required TResult onGoingLoading(
    1. List<T> items
    ),
  5. required TResult onGoingError(
    1. List<T> items,
    2. Object? e,
    3. StackTrace? stk
    ),
})
inherited

Implementation

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