getActivationMethodValue function Null safety

String getActivationMethodValue(
  1. ActivationMethod activationMethod
)

Implementation

String getActivationMethodValue(ActivationMethod activationMethod) {
  switch (activationMethod) {
    case ActivationMethod.NONE:
      return "NONE";
    case ActivationMethod.SHAKE:
      return "SHAKE";
    case ActivationMethod.SCREENSHOT:
      return "SCREENSHOT";
    default:
      return "NONE";
  }
}