show method
Sets the current menu to be displayed. It will not be displayed until next frame, as the child needs to be measured first.
Implementation
void show(Widget child) {
setState(() {
//This will hide the widget until we can calculate it's size which should take 1 frame
_menuSize = Size.zero;
_currentMenu = child;
});
}