I want to use string value in my code but I am unable to do so. Please help, I am new to flutter.
// Database (db) is database sqlite
// Dog class has a String field name
Text func() async{
var dog = await db.firstDog();
return Text(dog.name);
}
The return type Text isn't a Text, as defined by the method func.dart(return_of_invalid_type).