when<TResult extends Object?> method
TResult
when<TResult extends Object?>({
- required TResult idle(),
- required TResult refreshing(),
- required TResult refreshingCompleted(),
- required TResult refreshingFailed(),
- required TResult loading(),
- required TResult loadingCompleted(),
- required TResult loadingFailed(
- String? errorMessage
- required TResult noMoreData(),
inherited
Implementation
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function() idle,
required TResult Function() refreshing,
required TResult Function() refreshingCompleted,
required TResult Function() refreshingFailed,
required TResult Function() loading,
required TResult Function() loadingCompleted,
required TResult Function(String? errorMessage) loadingFailed,
required TResult Function() noMoreData,
}) =>
throw _privateConstructorUsedError;