displayNotificationInternal method

Future<void> displayNotificationInternal(
  1. String notificationId, {
  2. String? templateId = '',
})

Implementation

Future<void> displayNotificationInternal(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}');
  }
}