Skip to content

Instantly share code, notes, and snippets.

@matanlurey
Created June 9, 2014 16:40
Show Gist options
  • Save matanlurey/562a32d4ab85878639bf to your computer and use it in GitHub Desktop.
Save matanlurey/562a32d4ab85878639bf to your computer and use it in GitHub Desktop.
Bug: Static Methods in Dart
void main() {
// No error:
User.doSomething();
// Error
User
..doSomething()
..doSomething();
}
class User {
static void doSomething() {
print('I did something!');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment