contains method

dynamic contains(
  1. dynamic x
)

Implementation

contains(x) {
  return this.nodes.indexOf(x) != -1;
}