lastChild property

TreeNode? get lastChild

Returns the last child of this node or null if children is empty.

Implementation

TreeNode? get lastChild => _children.isEmpty ? null : _children.last;