setBadgeLabel method
Set/unset label on taskbar(dock) app icon
Note that it's required to request access at your AppDelegate.swift like
this:
UNUserNotificationCenter.current().requestAuthorization(options: .alert, .badge)
@platforms macos
Implementation
Future<void> setBadgeLabel([String? label]) async {
final window = _target;
tryNative(() {
_designatePrimaryWindow(window);
_application.setBadgeLabel(label ?? '');
});
}