whenOrNull<TResult extends Object?> method
TResult?
whenOrNull<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<
inherited
Implementation
@optionalTypeArgs
TResult? whenOrNull<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,
}) =>
throw _privateConstructorUsedError;