holdButton method
Implementation
void holdButton(Region region) {
if (region.id != widget.unSelectableId) {
setState(() {
if (widget.isMultiSelectable ?? false) {
selectedRegion.add(region);
widget.onChanged.call(region);
} else {
selectedRegion.clear();
selectedRegion.add(region);
widget.onChanged.call(region);
}
});
}
}