setToolbarStyle static method
Sets the window's toolbar style (macOS only).
For this method to have an effect, the window needs to have had a toolbar
added with the addToolbar
method beforehand.
Usage example:
Window.addToolbar();
Window.setToolbarStyle(MacOSToolbarStyle.unified);
Implementation
static Future<void> setToolbarStyle({
required MacOSToolbarStyle toolbarStyle,
}) async {
final newToolbarStyle = MacOSToolbarStyleToWindowToolbarStyleConverter
.convertMacOSToolbarStyleToWindowToolbarStyle(toolbarStyle);
WindowManipulator.setToolbarStyle(toolbarStyle: newToolbarStyle);
}