visitChildrenForSemantics method

  1. @override
void visitChildrenForSemantics(
  1. RenderObjectVisitor visitor
)
override

Called when collecting the semantics of this node.

The implementation has to return the children in paint order skipping all children that are not semantically relevant (e.g. because they are invisible).

The default implementation mirrors the behavior of visitChildren (which is supposed to walk all the children).

Implementation

@override
void visitChildrenForSemantics(RenderObjectVisitor visitor) {
  /// It produces an error when we change the sections list, Check this issue:
  /// https://github.com/imaNNeo/fl_chart/issues/861
  ///
  /// Below is the error message:
  /// Updated layout information required for RenderSemanticsAnnotations#f3b96 NEEDS-LAYOUT NEEDS-PAINT to calculate semantics.
  ///
  /// I don't know how to solve this error. That's why we disabled semantics for now.
}