cast<T> method
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);
Returns a printer that accepts values of type T
and casts them to R
for printing.
Printer<T> cast<T>() => onResultOf<T>((value) => value as R);