when<TResult extends Object?> method
TResult
when<TResult extends Object?>({
- required TResult data(
- List<
T> items
- List<
- required TResult loading(),
- required TResult error(
- Object? e,
- StackTrace? stk
- required TResult onGoingLoading(
- List<
T> items
- List<
- required TResult onGoingError(
- List<
T> items, - Object? e,
- StackTrace? stk
- List<
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;