回答編集履歴
1
誤字修正
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
やりたいことは、文字列をキーに、何かオブジェクトを得たい、ということですので、
|
6
6
|
|
7
|
-
`static con
|
7
|
+
`static const Map<String, dynamic> color_from_name = {'red': Colors.red, 'blue': Colors.blue, ...}`
|
8
8
|
|
9
9
|
といった辞書を作っておいて、
|
10
10
|
|