MacosWindowUtilsConfig class

A class for configuring macOS window properties.

toolbarStyle is the style of the window toolbar. It should be NSWindowToolbarStyle.expanded if the app will have a title bar and NSWindowToolbarStyle.unified otherwise.

Example:

final config = MacosWindowUtilsConfig(
  toolbarStyle: NSWindowToolbarStyle.expanded,
);
await config.apply();

Constructors

MacosWindowUtilsConfig({NSWindowToolbarStyle toolbarStyle = NSWindowToolbarStyle.unified, bool enableFullSizeContentView = true, bool makeTitlebarTransparent = true, bool hideTitle = true, bool removeMenubarInFullScreenMode = true, bool autoHideToolbarAndMenuBarInFullScreenMode = true})
Creates a MacosWindowUtilsConfig.
const

Properties

autoHideToolbarAndMenuBarInFullScreenMode bool
Whether to automatically hide the toolbar and menubar in full-screen mode.
final
enableFullSizeContentView bool
Whether to enable the full-size content view.
final
hashCode int
The hash code for this object.
no setterinherited
hideTitle bool
Whether to hide the title.
final
makeTitlebarTransparent bool
Whether to make the title bar transparent.
final
removeMenubarInFullScreenMode bool
Whether to remove the menubar in full-screen mode.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toolbarStyle NSWindowToolbarStyle
The style of the window toolbar.
final

Methods

apply() Future<void>
Applies the configuration to the macOS window.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited