getLedColor method

Color getLedColor(
  1. 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,
};