How do we change the function below, so it returns Future<List> instead of Future<List<Future>>
Future<List<Future<Books>>> searchBook(String searchString) async {
return await appDb.customSelect(
'SELECT * FROM books',
readsFrom: {appDb.books},
).map(appDb.books.mapFromRow).get();
}
I'm using drift_sqflite: ^2.0.1 drift: ^2.13.0
You can use
Future.wait
Or just `