contains method

bool contains(
  1. Node other
)
inherited

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

Implementation

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