down method

void down()

Move down in this menu.

Implementation

void down() {
  final pos = position;
  if (pos == null) {
    if (menuItems.isNotEmpty) {
      position = 0;
    }
  } else {
    if (pos == (menuItems.length - 1)) {
      return;
    }
    position = pos + 1;
  }
  itemRumbleEffect?.dispatch(game);
  showCurrentItem();
}