maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>(
  1. TResult $default(
    1. List<ItemType> items,
    2. PagingStatus status,
    3. bool hasRequestNextPage
    )?, {
  2. TResult loading()?,
  3. TResult error(
    1. dynamic error
    )?,
  4. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>(
  TResult Function(
          List<ItemType> items, PagingStatus status, bool hasRequestNextPage)?
      $default, {
  TResult Function()? loading,
  TResult Function(dynamic error)? error,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;