updateEditingValue method
- @override
Requests that this client update its editing state to the given value.
Implementation
@override
void updateEditingValue(TextEditingValue value) {
final oldCount = _countReplacements(_value);
final newCount = _countReplacements(value);
setState(() {
if (newCount < oldCount) {
_chips = Set.from(_chips.take(newCount));
widget.onChanged(_chips.toList(growable: false));
}
_value = value;
});
_onSearchChanged(text);
}