HareSegments<V> constructor
HareSegments<V> ({})
Implementation
HareSegments({required this.items, this.multi = false, this.allowEmpty = false, Set<V>? selected, this.onChanged}) : super() {
if (selected != null) {
this.selected.addAll(selected);
}
if (!allowEmpty && this.selected.isEmpty) {
this.selected.add(this.items.first.value);
}
}