compose<B> method
B Function()
compose<B>(
- B f(
- A a
Compose two functions together
add.compose(print);
// is the same as
() => print(add());
Implementation
B Function() compose<B>(B Function(A a) f) => () => f(this());