onResultOf<T> method

Printer<T> onResultOf<T>(
  1. Map1<T, R> function
)

Returns a printer that accepts values of type T and invokes the provided callback to transform it to type R for printing.

Implementation

Printer<T> onResultOf<T>(Map1<T, R> function) =>
    ResultOfPrinter<T, R>(this, function);