Skip to content

Instantly share code, notes, and snippets.

@monsieurp
Last active March 17, 2019 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monsieurp/7c7b8890da4abf92905a71b7fe624fc0 to your computer and use it in GitHub Desktop.
Save monsieurp/7c7b8890da4abf92905a71b7fe624fc0 to your computer and use it in GitHub Desktop.
Dart classes
class Clazz {
static List<String> elements = ["foo", "bar"];
}
void main() {
var n = Clazz.elements;
for (int i = 0; i < n.length; i++) {
print(n[i]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment