I want to get Future return value and use it like variable. I have this Future function
Future
Future _fetchUserInfo(String id)
var username; dbHelper.getUsers().then((user) { username = user.getName; });
this function returns future value
dbHelper.getUsers()
it is written like this
getUsers() async { .... }