firstChild property Null safety

Node? firstChild

Implementation

Node? get firstChild => nodes.isNotEmpty ? nodes[0] : null;