getMargin method

dynamic getMargin(
  1. InputState? currentState
)

Implementation

getMargin(InputState? currentState) {
  var lefrMargin = 0.0;
  var rightMargin = 0.0;
  switch (currentState) {
    case InputState.NUMBER:
      break;
    case InputState.NAME:
      lefrMargin = 2.5;
      break;
    case InputState.CVV:
    case InputState.DONE:
      break;
    case InputState.VALIDATE:
      rightMargin = 3;

      break;
  }
  return EdgeInsets.only(left: lefrMargin, right: rightMargin);
}