toBool method

bool toBool()

Converts enum value to boolean

Implementation

bool toBool() {
  return this == PrinterConnectionState.connected;
}