getTitleBarHeight method

Future<int> getTitleBarHeight()

Returns int - The title bar height of the native window.

Implementation

Future<int> getTitleBarHeight() async {
  final window = _target;
  if (window == null) return 0;
  final height = window.contentBounds.y - window.bounds.y;
  return height < 0 ? 0 : height.round();
}