visitChildElements method

  1. @override
void visitChildElements (ElementVisitor visitor)

Wrapper around visitChildren for BuildContext.


void visitChildElements(ElementVisitor visitor) {
  assert(() {
    if (owner == null || !owner._debugStateLocked)
      return true;
    throw FlutterError(
      'visitChildElements() called during build.\n'
      'The BuildContext.visitChildElements() method can\'t be called during '
      'build because the child list is still being updated at that point, '
      'so the children might not be constructed yet, or might be old children '
      'that are going to be replaced.'