around method

Printer<T> around(
  1. Object first, [
  2. Object? second
])

Prints something before and after another printer.

Implementation

Printer<T> around(Object first, [Object? second]) => SequencePrinter<T>(
    [Printer<T>.wrap(first), this, Printer<T>.wrap(second ?? first)]);