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('print statement before invoking the future'); | |
Future.delayed(Duration(seconds: 2), () { | |
print('Future completed!'); | |
return 12; | |
}); | |
print('print statement after invoking the future'); | |
} |
NewerOlder