getTitlebarHeight static method
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. This value is only available on macOS.
Implementation
static Future<double> getTitlebarHeight() async {
if (Platform.isMacOS) {
return WindowManipulator.getTitlebarHeight();
}
throw UnsupportedError('getTitlebarHeight() is only available on macOS.');
}