I have this error in my code before the { (builde:(context,snapshot)
buildSearchresult() {
return FutureBuilder(
future: searchresultfuture,
builder: (context, snapshot) {
if (!snapshot.hasData) {
return CircularProgress();
}
});
}