configDefaultValue method
void
configDefaultValue()
Implementation
void configDefaultValue() {
if (children.isNotEmpty) {
for (PickerEntity entity in children) {
if (!PhoenixTools.isEmpty(defaultValue)) {
List<String> values = defaultValue!.split(',');
entity.isSelected = values.contains(entity.value);
}
entity.configDefaultValue();
}
isSelected = isSelected || children.where((_) => _.isSelected).isNotEmpty;
}
}