getLedColor method
- ProtoColor color
Gets the Flutter color for the given Protobuf color.
Implementation
Color getLedColor(ProtoColor color) => switch (color) {
ProtoColor.BLUE => Colors.blue,
ProtoColor.RED => Colors.red,
ProtoColor.GREEN => Colors.green,
ProtoColor.UNLIT => Colors.grey,
_ => Colors.grey,
};