map<TResult extends Object?> method

  1. @optionalTypeArgs
TResult map<TResult extends Object?>({
  1. required TResult data(
    1. _Data<T> value
    ),
  2. required TResult loading(
    1. _Loading<T> value
    ),
  3. required TResult error(
    1. _Error<T> value
    ),
  4. required TResult onGoingLoading(
    1. _OnGoingLoading<T> value
    ),
  5. required TResult onGoingError(
    1. _OnGoingError<T> value
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult map<TResult extends Object?>({
  required TResult Function(_Data<T> value) data,
  required TResult Function(_Loading<T> value) loading,
  required TResult Function(_Error<T> value) error,
  required TResult Function(_OnGoingLoading<T> value) onGoingLoading,
  required TResult Function(_OnGoingError<T> value) onGoingError,
}) =>
    throw _privateConstructorUsedError;