isLastChild property

bool get isLastChild

Implementation

bool get isLastChild => (parent == null) || (parent!.children.last == this);