setNotificationName method
Sets the name for the notification. This method allows customization of the notification name that will be displayed to the user.
Implementation
@override
Future<void> setNotificationName(String notificationName) async {
if (Platform.isAndroid) {
try {
await methodChannel.invokeMethod(
'setNotificationName',
{"notification_name": notificationName},
);
} on PlatformException catch (e) {
log("Error setNotificationName: ${e.message}");
rethrow;
}
}
}