flattenedChildList property

List<GreenNode> flattenedChildList
latefinal

Children list when fully expand any underlying TransparentNode

Implementation

late final List<GreenNode> flattenedChildList = children
    .expand((child) =>
        child is TransparentNode ? child.flattenedChildList : [child])
    .toList(growable: false);