mapToShakeScreen method

ShakeScreen mapToShakeScreen(
  1. String shakeScreenStr
)

Converts string to ShakeScreen.

Implementation

ShakeScreen mapToShakeScreen(String shakeScreenStr) {
  if (shakeScreenStr == "newTicket") return ShakeScreen.newTicket;
  if (shakeScreenStr == "home") return ShakeScreen.home;

  return ShakeScreen.newTicket;
}