@@ -113,23 +113,23 @@ class Country {
113113 };
114114}
115115
116- enum CurrencyPos { LEFT , LEFT_SPACE , RIGHT , RIGHT_SPACE }
116+ enum CurrencyPos { left, leftSpace, right, rightSpace }
117117
118118final currencyPosValues = EnumValues ({
119- "left" : CurrencyPos .LEFT ,
120- "left_space" : CurrencyPos .LEFT_SPACE ,
121- "right" : CurrencyPos .RIGHT ,
122- "right_space" : CurrencyPos .RIGHT_SPACE
119+ "left" : CurrencyPos .left ,
120+ "left_space" : CurrencyPos .leftSpace ,
121+ "right" : CurrencyPos .right ,
122+ "right_space" : CurrencyPos .rightSpace
123123});
124124
125- enum Sep { EMPTY , SEP , PURPLE }
125+ enum Sep { empty, sep, purple }
126126
127- final sepValues = EnumValues ({"." : Sep .EMPTY , " " : Sep .PURPLE , "," : Sep .SEP });
127+ final sepValues = EnumValues ({"." : Sep .empty , " " : Sep .purple , "," : Sep .sep });
128128
129- enum DimensionUnit { CM , IN }
129+ enum DimensionUnit { cm, inch }
130130
131131final dimensionUnitValues =
132- EnumValues ({"cm" : DimensionUnit .CM , "in" : DimensionUnit .IN });
132+ EnumValues ({"cm" : DimensionUnit .cm , "in" : DimensionUnit .inch });
133133
134134class State {
135135 State ({
@@ -151,9 +151,9 @@ class State {
151151 };
152152}
153153
154- enum WeightUnit { KG , OZ }
154+ enum WeightUnit { kg, oz }
155155
156- final weightUnitValues = EnumValues ({"kg" : WeightUnit .KG , "oz" : WeightUnit .OZ });
156+ final weightUnitValues = EnumValues ({"kg" : WeightUnit .kg , "oz" : WeightUnit .oz });
157157
158158class EnumValues <T > {
159159 Map <String , T > map;
0 commit comments