Skip to content

Function12Ops<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>

extension Function12Ops<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> on T12 Function(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

Provides additional functions on functions with 12 parameters.

Properties

curried extension no setter

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) get curried

Return the curried form of this function.

Available on Function12<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>, provided by the Function12Ops<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> extension

Implementation
dart
Function12C<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> get curried =>
    (t0) =>
        (t1) =>
            (t2) =>
                (t3) =>
                    (t4) =>
                        (t5) =>
                            (t6) =>
                                (t7) =>
                                    (t8) =>
                                        (t9) =>
                                            (t10) =>
                                                (t11) => this(
                                                  t0,
                                                  t1,
                                                  t2,
                                                  t3,
                                                  t4,
                                                  t5,
                                                  t6,
                                                  t7,
                                                  t8,
                                                  t9,
                                                  t10,
                                                  t11,
                                                );

tupled extension no setter

T12 Function(Record) get tupled

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

Available on Function12<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>, provided by the Function12Ops<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> extension

Implementation
dart
Function1<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11), T12> get tupled => (t) => t(this);

Methods

andThen() extension

T13 Function(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) andThen<T13>(
  T13 Function(T12) fn,
)

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

Available on Function12<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>, provided by the Function12Ops<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> extension

Implementation
dart
Function12<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T13> andThen<T13>(
  Function1<T12, T13> fn,
) =>
    (t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11) =>
        fn(this(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11));

compose() extension

T12 Function(T13) compose<T13>(Record Function(T13) fn)

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

Available on Function12<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>, provided by the Function12Ops<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> extension

Implementation
dart
Function1<T13, T12> compose<T13>(
  Function1<T13, (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> fn,
) => (t13) => tupled(fn(t13));