Last active
March 17, 2019 17:41
-
-
Save monsieurp/7c7b8890da4abf92905a71b7fe624fc0 to your computer and use it in GitHub Desktop.
Dart classes
This file contains 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
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