W3cubDocs

/Dart 2

children property

List<Element> children

Implementation

List<Element> get children {
  if (_docChildren == null) {
    _docChildren = new FilteredElementList(this);
  }
  return _docChildren;
}
void children= (List<Element> value)

Implementation

set children(List<Element> value) {
  // Copy list first since we don't want liveness during iteration.
  var copy = value.toList();
  var children = this.children;
  children.clear();
  children.addAll(copy);
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-html/DocumentFragment/children.html