setNotificationConfig static method
void
setNotificationConfig({})
Accepts Notification configurations allowing you to configure all the notification related parameters (Android)
Implementation
static void setNotificationConfig(
{Priority priority = Priority.PRIORITY_DEFAULT,
Importance importance = Importance.IMPORTANCE_DEFAULT,
bool notificationSoundEnabled = true,
bool notificationInterceptionEnabled = false,
String? largeIcon,
String? smallIcon}) async {
await _channel.invokeMethod(
'setNotificationConfig',
<String, dynamic>{
'priority': priority.priorityValue(),
'importance': importance.importanceValue(),
'notificationSoundEnabled': notificationSoundEnabled,
'notificationInterceptionEnabled': notificationInterceptionEnabled,
'largeIcon': largeIcon,
'smallIcon': smallIcon,
},
);
}