isHTML method Null safety

bool isHTML(
  1. String filePath
)

Checks if string is an html file.

Implementation

static bool isHTML(String filePath) {
  return filePath.toLowerCase().endsWith(".html");
}