retrieveDetails method

SafetyOptionDetails retrieveDetails(
  1. SafetyPlanOptions option
)

A helper function that brings up the relevant metadata for each detail. These are for views where the user selects what options they want / how it affects the functionality.

Implementation

SafetyOptionDetails retrieveDetails(SafetyPlanOptions option) {
  switch (option) {
    case SafetyPlanOptions.onlyNeccessaryEmails:
      return onlyNeccessaryEmailsDetails();

    case SafetyPlanOptions.disableNotifications:
      return disableNotificationsDetails();

    case SafetyPlanOptions.disableBiometrics:
      return disableBiometricsDetails();

    case SafetyPlanOptions.enable2FA:
      return enable2FADetails();

    case SafetyPlanOptions.localDataStorage:
      return localDataStorageDetails();

    case SafetyPlanOptions.failedPasscodeDataDeletion:
      return failedPasscodeDataDeletionDetails();

    case SafetyPlanOptions.exitBar:
      return exitBarDetails();

    case SafetyPlanOptions.disableScreenshots:
      return disableScreenshotsDetails();

    case SafetyPlanOptions.logFailedAttempts:
      return logFailedAttemptsDetails();
  }
}