Future<String> is of type Future hence you need to resolve the future, You can either await before printing or use . then() to resolve the Future.
Read moreHow do you initialize a variable in darts?
In Dart, a variables must be declared before they are used. Variables are declared using the var keyword followed by variable name that you want to declare . Dart is a type inferred language, which allows compiler automatically infer(know) the type of data we want to store based on the initial value we assign.
Read moreHow do you resolve Future darts?
Future<String> is of type Future hence you need to resolve the future, You can either await before printing or use . then() to resolve the Future.
Read moreHow do you resolve futures in darts?
Future<String> is of type Future hence you need to resolve the future, You can either await before printing or use . then() to resolve the Future .
Read more