lastChild property

Node<T>? lastChild

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

Implementation

Node<T>? get lastChild => _children.isEmpty ? null : _children.last;