whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<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
    )?,
})
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;