isTemplate method
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);
}