checked method

bool checked({
  1. int? position,
  2. E? checkItem,
})

选中状态

Implementation

bool checked({int? position, E? checkItem}) {
  if (null != position) {
    assert(position < size);
    checkItem = item(position);
  }
  return _checks.contains(checkItem);
}