displayNotification method
Implementation
@override
Future<void> displayNotification(String notificationId, {String? templateId = ''}) async {
try {
await methodChannel.invokeMethod('displayNotification', { 'notificationId': notificationId, 'templateId': templateId });
}
on PlatformException catch(exception) {
log.severe('Exception when displaying the notification: ${exception.message}');
}
}