SystemTray class

Representation of system tray

Constructors

SystemTray()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

destroy() Future<void>
getTitle() Future<String>
(macOS) Returns string - the title displayed next to the tray icon in the status bar
initSystemTray({required String iconPath, String? title, String? toolTip, bool isTemplate = false}) Future<bool>
Show a SystemTray icon
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
popUpContextMenu() Future<void>
Pop up the context menu.
registerSystemTrayEventHandler(SystemTrayEventCallback callback) → void
register listener for system tray event.
setContextMenu(Menu menu) Future<void>
Sets the native application menu to menus.
setImage(String image, {bool isTemplate = false}) Future<void>
(Windows\macOS\Linux) Sets the image associated with this tray icon
setSystemTrayInfo({String? title, String? iconPath, String? toolTip, bool isTemplate = false}) Future<bool>
Set system info info
setTitle(String title) Future<void>
(macOS) Sets the title displayed next to the tray icon in the status bar.
setToolTip(String toolTip) Future<void>
(Windows\macOS) Sets the hover text for this tray icon.
toString() String
A string representation of this object.
inherited

Operators

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