Printer constructor

Printer([
  1. PrintType? type
])

Creates a Printer instance with an optional PrintType. If no type is provided, the message is printed with no color.

Implementation

Printer([PrintType? type]) : _type = type;