Skip to content

Function7Ops<T0, T1, T2, T3, T4, T5, T6, T7>

extensionFunction7Ops<T0, T1, T2, T3, T4, T5, T6, T7>onT7Function(T0,T1,T2,T3,T4,T5,T6)

Provides additional functions on functions with 7 parameters.

Properties

curried extension no setter

T7Function(T6)Function(T5)Function(T4)Function(T3)Function(T2)Function(T1)Function(T0)getcurried

Return the curried form of this function.

Available on Function7<T0, T1, T2, T3, T4, T5, T6, T7>, provided by the Function7Ops<T0, T1, T2, T3, T4, T5, T6, T7> extension

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

tupled extension no setter

T7Function(Record)gettupled

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

Available on Function7<T0, T1, T2, T3, T4, T5, T6, T7>, provided by the Function7Ops<T0, T1, T2, T3, T4, T5, T6, T7> extension

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

Methods

andThen() extension

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

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

Available on Function7<T0, T1, T2, T3, T4, T5, T6, T7>, provided by the Function7Ops<T0, T1, T2, T3, T4, T5, T6, T7> extension

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

compose() extension

T7Function(T8)compose<T8>(RecordFunction(T8)fn)

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

Available on Function7<T0, T1, T2, T3, T4, T5, T6, T7>, provided by the Function7Ops<T0, T1, T2, T3, T4, T5, T6, T7> extension

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