transform<S> method

ComputationTransform<S> transform<S>(
  1. Computable<S> transform(
    1. T value
    ), {
  2. bool? dedupe,
})

Implementation

ComputationTransform<S> transform<S>(
  Computable<S> Function(T value) transform, {
  bool? dedupe,
}) {
  return ComputationTransform(
    computables: [this],
    transform: (inputs) => transform(inputs.first),
    dedupe: dedupe ?? this.dedupe,
  );
}