getHtmlSkeletonFile method
Gets the skeleton file to use for the given SampleType
and DartPad
preference.
Implementation
File getHtmlSkeletonFile(String type) {
final String filename =
type == 'dartpad' ? 'dartpad-sample.html' : '$type.html';
return filesystem.file(path.join(skeletonsDirectory.path, filename));
}