isHTML property

bool isHTML

Checks if a file path or URL represents an HTML file.

Implementation

bool get isHTML {
  final mt = mimeType();
  return mt == 'text/html';
}