Skip to content

Function6Ops<T0, T1, T2, T3, T4, T5, T6>

extensionFunction6Ops<T0, T1, T2, T3, T4, T5, T6>onT6Function(T0,T1,T2,T3,T4,T5)

Provides additional functions on functions with 6 parameters.

Properties

curried extension no setter

T6Function(T5)Function(T4)Function(T3)Function(T2)Function(T1)Function(T0)getcurried

Return the curried form of this function.

Available on Function6<T0, T1, T2, T3, T4, T5, T6>, provided by the Function6Ops<T0, T1, T2, T3, T4, T5, T6> extension

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

tupled extension no setter

T6Function(Record)gettupled

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

Available on Function6<T0, T1, T2, T3, T4, T5, T6>, provided by the Function6Ops<T0, T1, T2, T3, T4, T5, T6> extension

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

Methods

andThen() extension

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

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

Available on Function6<T0, T1, T2, T3, T4, T5, T6>, provided by the Function6Ops<T0, T1, T2, T3, T4, T5, T6> extension

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

compose() extension

T6Function(T7)compose<T7>(RecordFunction(T7)fn)

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

Available on Function6<T0, T1, T2, T3, T4, T5, T6>, provided by the Function6Ops<T0, T1, T2, T3, T4, T5, T6> extension

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