Skip to content

Instantly share code, notes, and snippets.

@MoacirSchmidt
Forked from devoncarew/main.dart
Last active March 25, 2019 20:45
Show Gist options
  • Save MoacirSchmidt/06dc5dfaa4d0bd3e410f0c96efc329f5 to your computer and use it in GitHub Desktop.
Save MoacirSchmidt/06dc5dfaa4d0bd3e410f0c96efc329f5 to your computer and use it in GitHub Desktop.
helloworld
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