isParent property

  1. @override
bool isParent
override

Whether this node is capable of containing children and does.

If true then childNodes has at least one element.

Implementation

@override
bool get isParent => childNodes.isNotEmpty;