cast<T> method

Printer<T> cast<T>()

Returns a printer that accepts values of type T and casts them to R for printing.

Implementation

Printer<T> cast<T>() => onResultOf<T>((value) => value as R);