isTemplate method

  1. @protected
bool isTemplate(
  1. String template
)

Implementation

@protected
bool isTemplate(String template) {
  var templateExtention = extension(template);

  if (templateExtention.startsWith('.')) {
    templateExtention = templateExtention.substring(1);
  }

  return extensions.contains(templateExtention) &&
      FileSystemEntity.isFileSync(template);
}