Skip to content

CodecTuple4Ops<T0, T1, T2, T3>

extension CodecTuple4Ops<T0, T1, T2, T3> on Record

Provides a product operation on a 4-tuple of Codecs.

Methods

product() extension

Codec<T4> product<T4>(
  T4 Function(T0, T1, T2, T3) apply,
  Record Function(T4) tupled,
)

Available on Record, provided by the CodecTuple4Ops<T0, T1, T2, T3> extension

Implementation
dart
Codec<T4> product<T4>(
  Function4<T0, T1, T2, T3, T4> apply,
  Function1<T4, (T0, T1, T2, T3)> tupled,
) => Codec.product4(this.$1, this.$2, this.$3, this.$4, apply, tupled);