contains method

bool contains(
  1. Node other
)

Checks if this node contains the other node in its tree.

Implementation

bool contains(Node other) => //
    descendants.any((descendant) => identical(descendant, other));