map<TResult extends Object?> method
- @optionalTypeArgs
- TResult $default(
- PagingStateData<
PageKeyType, ItemType> value
- PagingStateData<
- required TResult loading(
- PagingStateLoading<
PageKeyType, ItemType> value
- PagingStateLoading<
- required TResult error(
- PagingStateError<
PageKeyType, ItemType> value
- PagingStateError<
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;