changeColor static method

  1. @deprecated
Future changeColor({
  1. required Color color,
  2. double? value,
})

Implementation

@deprecated
static Future changeColor({required Color color, double? value}) async {
  final double luminance = color.computeLuminance();
  final bool isDarkColor = luminance < (value ?? 0.4);
  await _channel.invokeMethod(
      'changeColor', {'color': color.value, 'isDarkColor': isDarkColor});
}