isHTML property

bool get isHTML

Checks if string is an html file.

Implementation

bool get isHTML => toLowerCase().endsWith(".html");