createWithTray static method

TrayIcon? createWithTray(
  1. Pointer<Void> tray
)

Creates a new TrayIcon; returns null if the native side failed.

Implementation

static TrayIcon? createWithTray(ffi.Pointer<ffi.Void> tray) {
  final handle = c.native_tray_icon_create_with_tray(tray);
  if (handle == 0) return null;
  return TrayIcon.fromHandle(handle);
}