setTitleBarColor static method

Future<void> setTitleBarColor(
  1. Color color, [
  2. bool transparent = true
])

Sets the color of the main window title bar. Blends with platform default overlay if transparent is true

Implementation

static Future<void> setTitleBarColor(
  Color color, [
  bool transparent = true,
]) async {
  await _channel.invokeMethod('setTitleBarColor', {
    'r': color.red,
    'g': color.green,
    'b': color.blue,
    'a': color.alpha,
    't': transparent,
  });
}