isHeader property

bool get isHeader

is true, iff the tagname starts with an "h"

Implementation

bool get isHeader => parent!.tagName.startsWith("h");