operator * method

Compose<Input, Output> operator *(
  1. Compose<Input, Output> other(
    1. Output output
    )
)

Chain two Compose. The second Compose must have the same Input and Output of the first.

int x2(int a) => a * 2;

/// Compose operator ➕
final composeOperator = x2.c(2) * x2.c;

// ((2 * 2) * 2) = (2 * 2) = 8
print(composeOperator());

Implementation

Compose<Input, Output> operator *(
  Compose<Input, Output> Function(Output output) other,
) =>
    c1((output) => other(output)());