createCustomChannel method

Future<bool> createCustomChannel({
  1. required String channelId,
  2. required String channelName,
  3. String? channelDescription,
  4. int? importance,
  5. bool? enableLights,
  6. int? lightColor,
  7. bool? enableVibration,
  8. bool? enableSound,
})

Create a custom notification channel.

This is only needed for Android 8.0+ (API level 26+). Returns true if the channel was created successfully.

Implementation

Future<bool> createCustomChannel({
  required String channelId,
  required String channelName,
  String? channelDescription,
  int? importance,
  bool? enableLights,
  int? lightColor,
  bool? enableVibration,
  bool? enableSound,
}) {
  throw UnimplementedError('createCustomChannel() has not been implemented.');
}