Skip to content

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

extension Function8Ops<T0, T1, T2, T3, T4, T5, T6, T7, T8> on T8 Function(T0, T1, T2, T3, T4, T5, T6, T7)

Provides additional functions on functions with 8 parameters.

Properties

curried extension no setter

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 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

T8 Function(Record) get tupled

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

T9 Function(T0, T1, T2, T3, T4, T5, T6, T7) andThen<T9>(T9 Function(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

T8 Function(T9) compose<T9>(Record Function(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));