maybeMap<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>(
  1. TResult $default(
    1. PagingStateData<PageKeyType, ItemType> value
    )?,
  2. {TResult loading(
    1. PagingStateLoading<PageKeyType, ItemType> value
    )?,
  3. TResult error(
    1. PagingStateError<PageKeyType, ItemType> value
    )?,
  4. required TResult orElse(
      )}
    )
    inherited

    Implementation

    @optionalTypeArgs
    TResult maybeMap<TResult extends Object?>(
      TResult Function(PagingStateData<PageKeyType, ItemType> value)? $default, {
      TResult Function(PagingStateLoading<PageKeyType, ItemType> value)? loading,
      TResult Function(PagingStateError<PageKeyType, ItemType> value)? error,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;