summaryrefslogtreecommitdiff
path: root/src/idl_gen_dart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/idl_gen_dart.cpp')
-rw-r--r--src/idl_gen_dart.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idl_gen_dart.cpp b/src/idl_gen_dart.cpp
index eec05a71..56c4a825 100644
--- a/src/idl_gen_dart.cpp
+++ b/src/idl_gen_dart.cpp
@@ -267,7 +267,7 @@ class DartGenerator : public BaseGenerator {
code += "const " + name + "._(" + enum_def.ToString(ev) + ");\n";
}
- code += " static const values = {";
+ code += " static const Map<int," + name + "> values = {";
for (auto it = enum_def.Vals().begin(); it != enum_def.Vals().end(); ++it) {
auto &ev = **it;
code += enum_def.ToString(ev) + ": " + ev.name + ",";