Printer constructor

Printer([
  1. PrintFunc? stdout,
  2. PrintFunc? stderr
])

Implementation

Printer([PrintFunc? stdout, PrintFunc? stderr])
    : stdout = stdout ?? print,
      stderr = stderr ?? stdout ?? print;