createNotificationChannel static method

Future<void> createNotificationChannel({
  1. required String id,
  2. required String name,
  3. required String sound,
  4. String description = '',
})

Creates a new NotificationChannel with the provided parameters.

Implementation

static Future<void> createNotificationChannel({
  required String id,
  required String name,
  required String sound,
  String description = '',
}) async {
  await platform.invokeMethod('createNotificationChannel', {
    'id': id,
    'name': name,
    'sound': sound,
    'description': description,
  });
}