isHeader property

bool get isHeader

Ensure to detect h(1-6) html tags

Implementation

bool get isHeader =>
    localName != null && localName!.contains(RegExp('h[1-6]'));