getAlign method
Implementation
Alignment getAlign(currentState) {
var align = Alignment.centerLeft;
switch (currentState) {
case InputState.NUMBER:
align = Alignment.centerLeft;
break;
case InputState.NAME:
align = Alignment.bottomLeft;
break;
case InputState.CVV:
case InputState.VALIDATE:
case InputState.DONE:
align = Alignment.bottomRight;
break;
}
return align;
}