operation property

The type of operation that generated the action code.

Implementation

ActionCodeInfoOperation get operation {
  switch (_operation) {
    case 0:
      return ActionCodeInfoOperation.unknown;
    case 1:
      return ActionCodeInfoOperation.passwordReset;
    case 2:
      return ActionCodeInfoOperation.verifyEmail;
    case 3:
      return ActionCodeInfoOperation.recoverEmail;
    case 4:
      return ActionCodeInfoOperation.emailSignIn;
    case 5:
      return ActionCodeInfoOperation.verifyAndChangeEmail;
    case 6:
      return ActionCodeInfoOperation.revertSecondFactorAddition;
    default:
      throw FallThroughError();
  }
}