根据id获取CheckBox的勾选状态
bool getCheckBoxStateById(String id, bool checked) { if (checkBoxStates[id] == null) { // checkBox本身的状态 checkBoxStates[id] = checked; } return checkBoxStates[id]!; }