then method

Consumer<T> then(
  1. Consumer<T> next
)

Returns a composed Consumer that calls this Consumer followed by next.

Implementation

Consumer<T> then(Consumer<T> next) => (value) {
 this(value);
 next(value);
};