remove method

bool remove(
  1. Node node
)

Deletes this local’s value from the specified node.

selection.each((Element thisArg, JSAny? d, int i, List<Element?> nodes) {
  foo.remove(thisArg);
});

Returns true if the node defined this local prior to removal, and false otherwise. If ancestors also define this local, those definitions are unaffected, and thus local.get will still return the inherited value.

Implementation

bool remove(Node node) {
  return (node as JSObject).delete(_.toJS).toDart;
}