setSelectedBox method

void setSelectedBox(
  1. WrapperBoxState box
)

Implementation

void setSelectedBox(WrapperBoxState box) {
  state.selectedEntity?.unselect();
  state.selectedEntity = box;
  state.selectedBox = box;
  state.selectedEntity.select();
}