when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult loading(),
  2. required TResult error(
    1. Object? error
    ),
  3. required TResult data(
    1. T value,
    2. bool isDone
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function() loading,
  required TResult Function(Object? error) error,
  required TResult Function(T value, bool isDone) data,
}) =>
    throw _privateConstructorUsedError;