getSelectFromSingle<T> static method

bool? getSelectFromSingle<T>(
  1. ISelectBox<T> targetBox, {
  2. bool linkage = true,
})

获取单个选择框的选中状态

Implementation

static bool? getSelectFromSingle<T>(ISelectBox<T> targetBox,
    {bool linkage = true}) {
  if (linkage) {
    return _getSelectListWithLinkage([targetBox]);
  } else {
    return targetBox.isBoxChecked();
  }
}