open method

void open({
  1. bool openFromStack = true,
  2. required String id,
})

Implementation

void open({bool openFromStack = true, required String id}) {
  if (isOpened && currentMenu!.id != id) {
    close();
  }
  currentMenu = menus.singleWhere((element) => element.id == id);
  currentMenu!.focus();
  update();
}