setBackgroundColor method

Future<void> setBackgroundColor(
  1. String id,
  2. Color? color
)

Set background color.

Implementation

Future<void> setBackgroundColor(String id, Color? color) async {
  await send<void>('setBackgroundColor', windowId: id, params: {
    if (color != null) 'color': color.toARGB32() else 'color': null,
  });
}