Last active
August 29, 2019 18:35
-
-
Save mogenson/f9b1e23ff8c44108fcd54bca14e38239 to your computer and use it in GitHub Desktop.
dart enum problem
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
class EnumType { | |
static const int one = 1; | |
} | |
void printEnum(EnumType number) { | |
print(number); | |
} | |
void main() { | |
printEnum(EnumType.one); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment