createCustomChannel method
Future<bool>
createCustomChannel({
- required String channelId,
- required String channelName,
- String? channelDescription,
- int? importance,
- bool? enableLights,
- int? lightColor,
- bool? enableVibration,
- bool? enableSound,
override
Implementation
@override
Future<bool> createCustomChannel({
required String channelId,
required String channelName,
String? channelDescription,
int? importance,
bool? enableLights,
int? lightColor,
bool? enableVibration,
bool? enableSound,
}) async {
final result =
await methodChannel.invokeMethod<bool>('createCustomChannel', {
'channelId': channelId,
'channelName': channelName,
'channelDescription': channelDescription,
'importance': importance,
'enableLights': enableLights,
'lightColor': lightColor,
'enableVibration': enableVibration,
'enableSound': enableSound,
});
return result ?? false;
}