Systray.init constructor

Systray.init()

Implementation

Systray.init() {
  _channel.setMethodCallHandler((MethodCall methodCall) async {
    if (methodCall.method == "systrayEvent") {
      Function? handler = _handlers[methodCall.arguments];
      if (handler != null) {
        handler();
      }
    }
  });
  _initialized = true;
}