contains method

bool contains(
  1. GlobalKey<State<StatefulWidget>> key
)

Whether then given sub menu is present in the tree

Implementation

bool contains(GlobalKey key) {
  return _menus.containsKey(key);
}