Skip to content

CodecTuple5Ops<T0, T1, T2, T3, T4>

extension CodecTuple5Ops<T0, T1, T2, T3, T4> on Record

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

Methods

product() extension

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

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

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