isHeader property

bool isHeader

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

Implementation

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