createNotificationChannelWithSound method Null safety

Future<void> createNotificationChannelWithSound(
  1. String channelId,
  2. String channelName,
  3. String channelDescription,
  4. int importance,
  5. bool showBadge,
  6. String sound
)

Method to create Notification Channel With Sound

Implementation

static Future<void> createNotificationChannelWithSound(
    String channelId,
    String channelName,
    String channelDescription,
    int importance,
    bool showBadge,
    String sound) async {
  return await _channel.invokeMethod('createNotificationChannelWithSound', {
    'channelId': channelId,
    'channelName': channelName,
    'channelDescription': channelDescription,
    'importance': importance,
    'showBadge': showBadge,
    'sound': sound
  });
}