getBounds method
The bounds of this tray icon, in logical pixels as before; null where the system does not tell (Linux).
Implementation
Future<Rect?> getBounds() async {
final bounds = _ensureTrayIcon.getBounds();
if (bounds.width <= 0 || bounds.height <= 0) {
return null;
}
return bounds.toRect();
}