call method

  1. @override
NodeList call(
  1. NodeList nodes
)
override

Applies the given arguments. This method MUST throw an Exception on invalid args.

Implementation

@override
NodeList call(NodeList nodes) => nodes
    .expand((node) => node.parent?.children.where((it) => node != it) ?? []);