setBackgroundColor method

Future<void> setBackgroundColor(
  1. Color backgroundColor
)

Sets the background color of the window.

Implementation

Future<void> setBackgroundColor(Color backgroundColor) async {
  final Map<String, dynamic> arguments = {
    'backgroundColorA': backgroundColor.alpha,
    'backgroundColorR': backgroundColor.red,
    'backgroundColorG': backgroundColor.green,
    'backgroundColorB': backgroundColor.blue,
  };
  await _invokeMethod('setBackgroundColor', arguments);
}