-
-
Save MoacirSchmidt/06dc5dfaa4d0bd3e410f0c96efc329f5 to your computer and use it in GitHub Desktop.
helloworld
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
int ordemDeExecucao = 1; | |
Future<void> printList(List l) async { | |
print("main.print: ${ordemDeExecucao++}"); | |
print(l); | |
return 0; | |
} | |
void main() { | |
List l1 = ['a', 'b', 'c']; | |
for(var i=0; i<3; i++) { | |
List l3 = List.from(l1); | |
printList(l3).then((result) { | |
print("then.print: ${ordemDeExecucao++}"); | |
print(l3); | |
}); | |
l1[1]='x'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment