getTemplateById method
Gets a template by its unique id.
correlationId
(optional) transaction id to trace execution through call chain.id
an id of template to be retrieved. Return Future that receives template or error.
Implementation
@override
Future<MessageTemplateV1?> getTemplateById(
String? correlationId, String id) async {
var timing =
instrument(correlationId, 'message_templates.get_template_by_id');
var template = await controller.getTemplateById(correlationId, id);
timing.endTiming();
return template;
}