Skip to content

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

extensionFunction22Ops<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22>onT22Function(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21)

Provides additional functions on functions with 22 parameters.

Properties

curried extension no setter

T22Function(T21)Function(T20)Function(T19)Function(T18)Function(T17)Function(T16)Function(T15)Function(T14)Function(T13)Function(T12)Function(T11)Function(T10)Function(T9)Function(T8)Function(T7)Function(T6)Function(T5)Function(T4)Function(T3)Function(T2)Function(T1)Function(T0)getcurried

Return the curried form of this function.

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

Implementation
dart
Function22C<
  T0,
  T1,
  T2,
  T3,
  T4,
  T5,
  T6,
  T7,
  T8,
  T9,
  T10,
  T11,
  T12,
  T13,
  T14,
  T15,
  T16,
  T17,
  T18,
  T19,
  T20,
  T21,
  T22
>
get curried =>
    (t0) =>
        (t1) =>
            (t2) =>
                (t3) =>
                    (t4) =>
                        (t5) =>
                            (t6) =>
                                (t7) =>
                                    (t8) =>
                                        (t9) =>
                                            (t10) =>
                                                (t11) =>
                                                    (t12) =>
                                                        (t13) =>
                                                            (t14) =>
                                                                (t15) =>
                                                                    (t16) =>
                                                                        (t17) =>
                                                                            (t18) =>
                                                                                (t19) =>
                                                                                    (t20) =>
                                                                                        (t21) =>
                                                                                            this(
                                                                                              t0,
                                                                                              t1,
                                                                                              t2,
                                                                                              t3,
                                                                                              t4,
                                                                                              t5,
                                                                                              t6,
                                                                                              t7,
                                                                                              t8,
                                                                                              t9,
                                                                                              t10,
                                                                                              t11,
                                                                                              t12,
                                                                                              t13,
                                                                                              t14,
                                                                                              t15,
                                                                                              t16,
                                                                                              t17,
                                                                                              t18,
                                                                                              t19,
                                                                                              t20,
                                                                                              t21,
                                                                                            );

tupled extension no setter

T22Function(Record)gettupled

Returns a function that takes a tuple of parameters rather than individual parameters.

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

Implementation
dart
Function1<
  (
    T0,
    T1,
    T2,
    T3,
    T4,
    T5,
    T6,
    T7,
    T8,
    T9,
    T10,
    T11,
    T12,
    T13,
    T14,
    T15,
    T16,
    T17,
    T18,
    T19,
    T20,
    T21,
  ),
  T22
>
get tupled => (t) => t(this);

Methods

andThen() extension

T23Function(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,)andThen<T23>(T23Function(T22)fn);

Composes this function with the provided function, this function being applied first.

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

Implementation
dart
Function22<
  T0,
  T1,
  T2,
  T3,
  T4,
  T5,
  T6,
  T7,
  T8,
  T9,
  T10,
  T11,
  T12,
  T13,
  T14,
  T15,
  T16,
  T17,
  T18,
  T19,
  T20,
  T21,
  T23
>
andThen<T23>(Function1<T22, T23> fn) =>
    (
      t0,
      t1,
      t2,
      t3,
      t4,
      t5,
      t6,
      t7,
      t8,
      t9,
      t10,
      t11,
      t12,
      t13,
      t14,
      t15,
      t16,
      t17,
      t18,
      t19,
      t20,
      t21,
    ) => fn(
      this(
        t0,
        t1,
        t2,
        t3,
        t4,
        t5,
        t6,
        t7,
        t8,
        t9,
        t10,
        t11,
        t12,
        t13,
        t14,
        t15,
        t16,
        t17,
        t18,
        t19,
        t20,
        t21,
      ),
    );

compose() extension

T22Function(T23)compose<T23>(RecordFunction(T23)fn)

Composes this function with the provided function, this function being applied first.

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

Implementation
dart
Function1<T23, T22> compose<T23>(
  Function1<
    T23,
    (
      T0,
      T1,
      T2,
      T3,
      T4,
      T5,
      T6,
      T7,
      T8,
      T9,
      T10,
      T11,
      T12,
      T13,
      T14,
      T15,
      T16,
      T17,
      T18,
      T19,
      T20,
      T21,
    )
  >
  fn,
) => (t23) => tupled(fn(t23));