getHtmlSkeletonFile method

File getHtmlSkeletonFile(
  1. String type
)

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