Skip to content

Instantly share code, notes, and snippets.

@mogenson
Last active August 29, 2019 18:35
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 mogenson/f9b1e23ff8c44108fcd54bca14e38239 to your computer and use it in GitHub Desktop.
Save mogenson/f9b1e23ff8c44108fcd54bca14e38239 to your computer and use it in GitHub Desktop.
dart enum problem
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