setColor static method

void setColor(
  1. Color color
)

Sets the primary color.

Implementation

static void setColor(Color color) {
  final String hexString = _colorToHex(color);
  _channel.invokeMethod('setColor', {"color": hexString});
}