id property

int get id

Implementation

int get id {
  switch (this) {
    case PrinterStatus.discoveringPrinter:
      return 0;
    case PrinterStatus.connecting:
      return 1;
    case PrinterStatus.ready:
      return 2;
    case PrinterStatus.printing:
      return 3;
    case PrinterStatus.disconnecting:
      return -1;
    case PrinterStatus.disconnected:
      return -2;
  }
}