isItalic property

bool get isItalic

Ensure to detect italic html tags

Implementation

bool get isItalic => localName == 'em' || localName == 'i';