@@ -60,17 +60,17 @@ class MaterialStepperComponent {
6060 @HostBinding ('class' )
6161 static const hostClass = 'themeable' ;
6262
63- static const DEFAULT_ORIENTATION = HORIZONTAL ;
64- static const DEFAULT_SIZE = SIZE_DEFAULT ;
63+ static const defaultOrientation = horizontal ;
64+ static const defaultSize = sizeDefault ;
6565 List <StepDirective > steps = [];
6666
6767 int activeStepIndex;
6868 bool stepperDone = false ;
6969
7070 String _noText = _cancelMsg;
7171
72- var _orientation = DEFAULT_ORIENTATION ;
73- var _size = DEFAULT_SIZE ;
72+ var _orientation = defaultOrientation ;
73+ var _size = defaultSize ;
7474 var _legalJumps;
7575
7676 HtmlElement _stepperNativeElement;
@@ -154,7 +154,7 @@ class MaterialStepperComponent {
154154 /// 'horizontal' and 'vertical' (default).
155155 @Input ()
156156 set orientation (String s) {
157- assert (Orientations .contains (s));
157+ assert (orientations .contains (s));
158158 _orientation = s;
159159 }
160160
@@ -163,7 +163,7 @@ class MaterialStepperComponent {
163163 /// 'default' (default) and 'mini'.
164164 @Input ()
165165 set size (String s) {
166- assert (Sizes .contains (s));
166+ assert (sizes .contains (s));
167167 _size = s;
168168 }
169169
@@ -172,7 +172,7 @@ class MaterialStepperComponent {
172172 /// while for others, it is more natural if the step content is laid out
173173 /// together with its other DOM elements (vertical, default-size).
174174 bool get shouldInlineContent =>
175- orientation == VERTICAL && size == SIZE_DEFAULT ;
175+ orientation == vertical && size == sizeDefault ;
176176
177177 String get noText => _noText;
178178
@@ -198,7 +198,7 @@ class MaterialStepperComponent {
198198 /// 'all' (any jump allowed, regardless of the step state).
199199 @Input ()
200200 set legalJumps (String s) {
201- assert (Jumps .contains (s));
201+ assert (jumps .contains (s));
202202 _legalJumps = s;
203203 _recalculatePropertiesOfSteps ();
204204 }
@@ -267,13 +267,13 @@ class MaterialStepperComponent {
267267 }
268268
269269 switch (_legalJumps) {
270- case ALL :
270+ case all :
271271 s.isSelectable = ! s.active;
272272 break ;
273- case NONE :
273+ case none :
274274 s.isSelectable = false ;
275275 break ;
276- case BACKWARDS :
276+ case backwards :
277277 s.isSelectable = i < activeStepIndex;
278278 }
279279 i++ ;
0 commit comments