map<TResult extends Object?> method

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

Implementation

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