init static method

Future<void> init({
  1. String? androidIcon,
  2. String? windowsIconPath,
  3. bool showInForeground = true,
})

Sets up notifications; initU() already calls it. androidIcon is a drawable name (default: the app icon). UNotification.init(androidIcon: "ic_notification")

Implementation

static Future<void> init({String? androidIcon, String? windowsIconPath, bool showInForeground = true}) => UNotifyChannel.init(
  appId: UPackage.isReady ? UPackage.packageName : null,
  appName: UPackage.isReady ? UPackage.appName : null,
  androidIcon: androidIcon,
  windowsIconPath: windowsIconPath,
  showInForeground: showInForeground,
);