I'd like know , isn't possible to select just one row from database using Flutter and Sqlite ?
I have tried this code :
// db.dart
Future<dynamic> find(Note note) async {
await openDb();
return await _database.query('note', where: "id = ?", whereArgs: [note.id], limit: 1);
}
// detail.dart
// note is an object
final noteO = dbmanager.find(note);
print(noteO);
the output of print(noteO) in console is :
I/flutter ( 8845): Instance of 'Future<dynamic>'