getAllNotes method
Implementation
Future<List<Note>> getAllNotes() async {
final db = await database;
final List<Map<String, dynamic>> maps = await db.query('notes') ?? [];
return List.generate(maps.length, (i) {
return Note.fromMap(maps[i]);
});
}