Skip to content

CodecTuple21Ops<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20>

extension CodecTuple21Ops<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> on Record

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

Methods

product() extension

Codec<T21> product<T21>(
  T21 Function(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20) apply,
  Record Function(T21) tupled,
)

Available on Record, provided by the CodecTuple21Ops<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> extension

Implementation
dart
Codec<T21> product<T21>(
  Function21<
    T0,
    T1,
    T2,
    T3,
    T4,
    T5,
    T6,
    T7,
    T8,
    T9,
    T10,
    T11,
    T12,
    T13,
    T14,
    T15,
    T16,
    T17,
    T18,
    T19,
    T20,
    T21
  >
  apply,
  Function1<
    T21,
    (
      T0,
      T1,
      T2,
      T3,
      T4,
      T5,
      T6,
      T7,
      T8,
      T9,
      T10,
      T11,
      T12,
      T13,
      T14,
      T15,
      T16,
      T17,
      T18,
      T19,
      T20,
    )
  >
  tupled,
) => Codec.product21(
  this.$1,
  this.$2,
  this.$3,
  this.$4,
  this.$5,
  this.$6,
  this.$7,
  this.$8,
  this.$9,
  this.$10,
  this.$11,
  this.$12,
  this.$13,
  this.$14,
  this.$15,
  this.$16,
  this.$17,
  this.$18,
  this.$19,
  this.$20,
  this.$21,
  apply,
  tupled,
);