setTitleBarStyle method

Future<void> setTitleBarStyle(
  1. TitleBarStyle titleBarStyle, {
  2. bool windowButtonVisibility = true,
})

Changes the title bar style of native window.

Implementation

Future<void> setTitleBarStyle(
  TitleBarStyle titleBarStyle, {
  bool windowButtonVisibility = true,
}) async {
  final Map<String, dynamic> arguments = {
    'titleBarStyle': titleBarStyle.name,
    'windowButtonVisibility': windowButtonVisibility,
  };
  await _channel.invokeMethod('setTitleBarStyle', arguments);
}