when<TResult extends Object?> method
- @optionalTypeArgs
- TResult $default(
- List<
ItemType> items, - PagingStatus status,
- bool hasRequestNextPage
- List<
- required TResult loading(),
- required TResult error(
- 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;