isValidHTML property
bool
get
isValidHTML
Checks if the string is an HTML file or URL.
Implementation
bool get isValidHTML => (this ?? ' ').toLowerCase().endsWith('.html');
Checks if the string is an HTML file or URL.
bool get isValidHTML => (this ?? ' ').toLowerCase().endsWith('.html');