when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult idle(),
  2. required TResult refreshing(),
  3. required TResult refreshingCompleted(),
  4. required TResult refreshingFailed(),
  5. required TResult loading(),
  6. required TResult loadingCompleted(),
  7. required TResult loadingFailed(
    1. String? errorMessage
    ),
  8. 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;