hasChildNodes method Null safety

bool hasChildNodes()

Implementation

bool hasChildNodes() => nodes.isNotEmpty;