deleteTemplate method

Future<void> deleteTemplate(
  1. String templateId
)

Implementation

Future<void> deleteTemplate(String templateId) async {
  await store.delete(PrintCollection.templates, templateId);
  _templates = _templates.where((entry) => entry.id != templateId).toList();
  notifyListeners();
}