Skip to content

Function8Ops<T0, T1, T2, T3, T4, T5, T6, T7, T8>

extensionFunction8Ops<T0, T1, T2, T3, T4, T5, T6, T7, T8>onT8Function(T0,T1,T2,T3,T4,T5,T6,T7)

Provides additional functions on functions with 8 parameters.

Properties

curried extension no setter

T8Function(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 Function8<T0, T1, T2, T3, T4, T5, T6, T7, T8>, provided by the Function8Ops<T0, T1, T2, T3, T4, T5, T6, T7, T8> extension

Implementation
dart
Function8C<T0, T1, T2, T3, T4, T5, T6, T7, T8> get curried =>
    (t0) =>
        (t1) =>
            (t2) => (t3) => (t4) => (t5) => (t6) => (t7) => this(t0, t1, t2, t3, t4, t5, t6, t7);

tupled extension no setter

T8Function(Record)gettupled

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

Available on Function8<T0, T1, T2, T3, T4, T5, T6, T7, T8>, provided by the Function8Ops<T0, T1, T2, T3, T4, T5, T6, T7, T8> extension

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

Methods

andThen() extension

T9Function(T0,T1,T2,T3,T4,T5,T6,T7)andThen<T9>(T9Function(T8)fn,);

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

Available on Function8<T0, T1, T2, T3, T4, T5, T6, T7, T8>, provided by the Function8Ops<T0, T1, T2, T3, T4, T5, T6, T7, T8> extension

Implementation
dart
Function8<T0, T1, T2, T3, T4, T5, T6, T7, T9> andThen<T9>(Function1<T8, T9> fn) =>
    (t0, t1, t2, t3, t4, t5, t6, t7) => fn(this(t0, t1, t2, t3, t4, t5, t6, t7));

compose() extension

T8Function(T9)compose<T9>(RecordFunction(T9)fn)

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

Available on Function8<T0, T1, T2, T3, T4, T5, T6, T7, T8>, provided by the Function8Ops<T0, T1, T2, T3, T4, T5, T6, T7, T8> extension

Implementation
dart
Function1<T9, T8> compose<T9>(Function1<T9, (T0, T1, T2, T3, T4, T5, T6, T7)> fn) =>
    (t9) => tupled(fn(t9));