childrenForSemantics property

Iterable<ChildHandleType> get childrenForSemantics

An iterable of children to be visited for semantics, in paint order, skipping children that are not semantically relevant.

Override this to customize the semantics traversal order. By default, returns children in paint order, filtering out ignored children.

Implementation

Iterable<ChildHandleType> get childrenForSemantics sync* {
  for (final child in children) {
    if (!child._ignore) {
      yield child;
    }
  }
}