getNotificationTemplate static method

Future<SbTemplate?> getNotificationTemplate({
  1. required String key,
})

Gets the notification template with key.

Implementation

static Future<SbTemplate?> getNotificationTemplate({
  required String key,
}) async {
  final template = await _instance._cacheManager.getTemplate(key: key);
  if (template != null) {
    return SbTemplate.fromJson(template);
  }
  return null;
}