We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a62960f commit 37f662eCopy full SHA for 37f662e
1 file changed
lib/services/notes/notes_service.dart
@@ -108,10 +108,10 @@ class NotesService {
108
109
/// Returns all the notes with the [ids].
110
Future<List<Note>> getAllByIds(List<int> ids) async => [
111
- ...?await (_plainTextNotes.getAll(ids)),
112
- ...?await (_richTextNotes.getAll(ids)),
113
- ...?await (_checklistNotes.getAll(ids)),
114
- ];
+ ...await (_plainTextNotes.getAll(ids)),
+ ...await (_richTextNotes.getAll(ids)),
+ ...await (_checklistNotes.getAll(ids)),
+ ].nonNulls.toList();
115
116
/// Returns all the notes that are not deleted.
117
Future<List<Note>> getAllNotDeleted() async => [
0 commit comments