templatesUsing method

int templatesUsing(
  1. String formatId
)

Templates that print on formatId, shown before deleting a format.

Implementation

int templatesUsing(String formatId) =>
    _templates.where((template) => template.paperFormatId == formatId).length;