allOptions method
- string v
Implementation
Future<List<T>> allOptions(string v) async {
List<T> values = [if (_value != null) _value as T, ...widget.options];
if (widget.asyncItems != null) {
var asyncOptions = (await widget.asyncItems!(v)).toList();
values = [...values, ...asyncOptions];
}
values = values
.search(
searchTerms: v,
searchOn: searchOn,
levenshteinDistance: widget.levenshteinDistance,
)
.toList();
return values;
}