getTitlebarHeight static method

Future<double> getTitlebarHeight()

Gets the height of the titlebar.

This value is used to determine the [TitlebarSafeArea] widget. If the full-size content view is enabled, this value will be the height of the titlebar. If the full-size content view is disabled, this value will be 0.

Implementation

static Future<double> getTitlebarHeight() async {
  await _completer.future;
  return await _windowManipulatorMethodChannel
      .invokeMethod('getTitlebarHeight');
}