TemplateNotFoundException constructor

TemplateNotFoundException(
  1. String templateName, {
  2. List<String>? availableTemplates,
})

Implementation

TemplateNotFoundException(this.templateName,
    {List<String>? availableTemplates})
    : super(
        'Template "$templateName" was not found.'
        '${availableTemplates != null && availableTemplates.isNotEmpty ? "\n\nAvailable templates:\n${availableTemplates.map((t) => "  • $t").join('\n')}\n\nRun:\n  flutter_setup templates" : ""}',
        exitCode: 69,
      );