createCustomChannel method

  1. @override
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,
})
override

Create a custom notification channel.

Implementation

@override
Future<bool> createCustomChannel({
  required String channelId,
  required String channelName,
  String? channelDescription,
  int? importance,
  bool? enableLights,
  int? lightColor,
  bool? enableVibration,
  bool? enableSound,
}) async {
  // Web doesn't have notification channels like Android
  // We'll just return true to indicate success
  return true;
}