createAndroidHighImportanceChannel function

Future<AndroidNotificationChannel> createAndroidHighImportanceChannel({
  1. required FlutterLocalNotificationsPlugin localNotificationsPlugin,
})

Implementation

Future<AndroidNotificationChannel> createAndroidHighImportanceChannel(
    {required FlutterLocalNotificationsPlugin localNotificationsPlugin}) async {
  await localNotificationsPlugin
      .resolvePlatformSpecificImplementation<
          AndroidFlutterLocalNotificationsPlugin>()
      ?.createNotificationChannel(androidChannel);
  return androidChannel;
}