isInTree method

  1. @override
bool isInTree(
  1. Node? key
)
override

Returns true if key is in the tree.

Implementation

@override
bool isInTree(Node? key) => key != null && root.contains(key);