setNotificationConfig method
void
setNotificationConfig
(- {Priority priority = Priority.PRIORITY_DEFAULT,
- Importance importance = Importance.IMPORTANCE_DEFAULT,
- bool notificationSoundEnabled = true,
- bool notificationInterceptionEnabled = false,
- String largeIcon,
- String smallIcon}
)
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,
},
);
}