add method Null safety

  1. @override
void add(
  1. Node value
)

Adds value to the end of this list, extending the length by one.

The list must be growable.

Implementation

@override
void add(Node value) {
  if (value is DocumentFragment) {
    addAll(value.nodes);
  } else {
    super.add(_setParent(value));
  }
}