This PR is to add support for the expanded/collapsed-state semantics flag to the engine. After adding another PR to Flutter, we will be able to support the expanded/collapsed state in semantics for submenu buttons. Related to [#127617](https://github.com/flutter/flutter/issues/127617) in flutter