isTemplate method

  1. @protected
bool isTemplate(
  1. String path, [
  2. String? from
])

Implementation

@protected
bool isTemplate(String path, [String? from]) {
  var template = relative(path, from: from);
  var templateExtension = extension(template);

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

  return extensions.contains(templateExtension) &&
      FileSystemEntity.isFileSync(path);
}