reset method

void reset({
  1. bool needClose = true,
})

清空已选择项

Implementation

void reset({bool needClose = true}) {
  value.items[value.selected] = value.orginItems[value.selected];
  if (needClose) {
    closed();
  } else {
    notifyListeners();
  }
}