map<TResult extends Object?> method

  1. @optionalTypeArgs
TResult map<TResult extends Object?>({
  1. required TResult loading(
    1. PromiseLoading<T> value
    ),
  2. required TResult error(
    1. PromiseError<T> value
    ),
  3. required TResult data(
    1. PromiseData<T> value
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult map<TResult extends Object?>({
  required TResult Function(PromiseLoading<T> value) loading,
  required TResult Function(PromiseError<T> value) error,
  required TResult Function(PromiseData<T> value) data,
}) =>
    throw _privateConstructorUsedError;