Created
May 31, 2018 17:42
-
-
Save devoncarew/24b488717dfee808bcd8f535db191f08 to your computer and use it in GitHub Desktop.
This file contains hidden or 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() { | |
Foo foo = new Foo('foo'); | |
Foo bar = Foo('bar'); | |
for (int i = 0; i < 5; i++) { | |
print('hello ${i + 1}'); | |
} | |
print(foo); | |
print(bar); | |
} | |
class Foo { | |
final String name; | |
Foo(this.name); | |
String toString() => 'foo: $name'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment