Future<NoteData?> findById(int noteId) async { return await (db.select( db.note, )..where((e) => e.id.equals(noteId))).getSingleOrNull(); }