containsKey method

  1. @override
bool containsKey(
  1. Key key
)
override

Checks if the stack contains a widget with the given key.

Implementation

@override
bool containsKey(Key key) {
  return _stack.any((element) => element.key == key);
}