Last active
September 27, 2019 13:23
-
-
Save Zimins/c9f8d239624b7b57771ef08580c35edc to your computer and use it in GitHub Desktop.
exampleForDartFuture
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
print("main started"); | |
requestApi().then((result) { | |
print(result); | |
}); | |
print("main finished"); | |
} | |
Future<String> requestApi() async { | |
return "result"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment