firstChild property

  1. @override
T? firstChild

Return the first child of this node, or null if there are no children.

Implementation

@override
T? get firstChild => children.isEmpty ? null : children.first;