isHTML property

bool get isHTML

Checks if string is an html file.

Implementation

bool get isHTML {
  return _string.toLowerCase().endsWith(".html");
}