TitlebarSafeArea constructor

const TitlebarSafeArea({
  1. Key? key,
  2. required Widget child,
})

A widget that provides a safe area for its child.

The safe area is the area of the window that is not covered by the window's title bar. This widget has no effect when the full-size content view is disabled or when the app is running on a platform other than macOS.

Example:

TitlebarSafeArea(
 child: Text('Hello World'),
)

Implementation

const TitlebarSafeArea({super.key, required this.child});