contains method Null safety

bool contains(
  1. Node node
)

Implementation

bool contains(Node node) => nodes.contains(node);