maybeMap<TResult extends Object?> method

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

Implementation

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