findById method

Future<NoteData?> findById(
  1. int noteId
)

Implementation

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