getUserOperationStep function

String getUserOperationStep(
  1. UserOperationSteps step
)

Returns the string value of the enum Throws an Exception if the enum is not defined.

Implementation

String getUserOperationStep(UserOperationSteps step) {
  switch (step) {
    case UserOperationSteps.SIGN_UP:
      return 'signup';
    case UserOperationSteps.SIGN_IN:
      return 'signin';
    case UserOperationSteps.SIGN_OUT:
      return 'signout';
    case UserOperationSteps.UPDATE:
      return 'update';
    default:
      throw Exception('User operation step is not defined.');
  }
}