matches property

List<String> get matches

All suggestions that prefix-match the current input.

Implementation

List<String> get matches {
  final query = _rawInput.toLowerCase();
  if (query.isEmpty) return List.of(options);
  return options.where((o) => o.toLowerCase().startsWith(query)).toList();
}