deleteTemplateById method

  1. @override
Future<MessageTemplateV1?> deleteTemplateById(
  1. String? correlationId,
  2. String id
)
override

Deleted a template by it's unique id.

  • correlation_id (optional) transaction id to trace execution through call chain.
  • id an id of the template to be deleted Return Future that receives deleted template Throws error.

Implementation

@override
Future<MessageTemplateV1?> deleteTemplateById(
    String? correlationId, String id) async {
  var timing =
      instrument(correlationId, 'message_templates.delete_template_by_id');
  var template = await controller.deleteTemplateById(correlationId, id);
  timing.endTiming();
  return template;
}