when<TResult extends Object?> method

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

    Implementation

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