maybeMap<TResult extends Object?> abstract method

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
  1. TResult data(
    1. AsyncData<T> value
    )?,
  2. TResult loading(
    1. AsyncLoading<T> value
    )?,
  3. TResult error(
    1. AsyncError<T> value
    )?,
  4. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
  TResult Function(AsyncData<T> value)? data,
  TResult Function(AsyncLoading<T> value)? loading,
  TResult Function(AsyncError<T> value)? error,
  required TResult orElse(),
});