parentTag property

String get parentTag

The tag name of the parent element

Implementation

String get parentTag => parent?.tag ?? '';