search method
Notes whose text contains query.
Implementation
List<UMediaNote> search(String query) {
final String needle = UDocText.forSearch(query);
if (needle.isEmpty) return notes;
return _notes.where((UMediaNote note) => UDocText.forSearch(note.text).contains(needle)).toList();
}