Created
January 24, 2023 18:42
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
import 'dart:async'; | |
Future<void> main() async { | |
mA(); | |
mB(); | |
mC('Metodo main'); | |
mD(); | |
} | |
mA() { | |
print('Executando A'); | |
} | |
mB() { | |
print('Iniciando B'); | |
mC('Metodo B'); | |
print('Finalizando B'); | |
} | |
mC(String caller) { | |
print('Iniciando C chamado de $caller'); | |
Future( | |
() => print('Iniciando Future C chamado de $caller'), | |
).then((value) => print('Finalizando Future C chamado de $caller')); | |
print('Finalizando C chamado de $caller'); | |
} | |
mD() { | |
print('Executando D'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment