TrayIconImageDelegate class
A helper that sets the image of a TrayIcon.
- Annotations
Constructors
- TrayIconImageDelegate.fromAsset(String asset)
-
A TrayIconImageDelegate that uses a
.ico
file from the Flutter assets directory. - TrayIconImageDelegate.fromBytes(ByteBuffer pixels)
- A TrayIconImageDelegate that uses an RGBA image buffer.
- TrayIconImageDelegate.fromPath({Uri? uri, String? path})
-
A TrayIconImageDelegate that uses a
.ico
file. - TrayIconImageDelegate.fromStockIcon(StockIcon stockIcon)
- A TrayIconImageDelegate that uses a Windows system icon.
- TrayIconImageDelegate.fromWinIcon(WinIcon winIcon)
- A TrayIconImageDelegate that uses a Windows system icon.
- TrayIconImageDelegate.noImage()
- A TrayIconImageDelegate that uses no image and will remove existing images.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
setIcon
↔ Future<
void> Function(Id id, BetrayalPlugin plugin) -
The call into the plugin to set the image for a TrayIcon with the given Id.
latefinal
Methods
-
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