color property
Color
get
color
Implementation
Color get color {
switch (this) {
case PrinterStatus.discoveringPrinter:
return Colors.orange;
case PrinterStatus.connecting:
return Colors.greenAccent;
case PrinterStatus.ready:
return Colors.green;
case PrinterStatus.printing:
return Colors.yellow;
case PrinterStatus.disconnecting:
return Colors.redAccent;
case PrinterStatus.disconnected:
return Colors.red;
}
}