Checks if the stack contains a widget with the given key.
@override bool containsKey(Key key) { return _stack.any((element) => element.key == key); }