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