Skip to content

Instantly share code, notes, and snippets.

@devoncarew
Created May 31, 2018 17:42
Show Gist options
  • Save devoncarew/24b488717dfee808bcd8f535db191f08 to your computer and use it in GitHub Desktop.
Save devoncarew/24b488717dfee808bcd8f535db191f08 to your computer and use it in GitHub Desktop.
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