message method

String? message(
  1. HcUpgradeMessage messageKey
)

Override the message function to provide custom language localization.

Implementation

String? message(HcUpgradeMessage messageKey) {
  switch (messageKey) {
    case HcUpgradeMessage.body:
      return body;
    case HcUpgradeMessage.buttonTitleIgnore:
      return buttonTitleIgnore;
    case HcUpgradeMessage.buttonTitleLater:
      return buttonTitleLater;
    case HcUpgradeMessage.buttonTitleUpdate:
      return buttonTitleUpdate;
    case HcUpgradeMessage.prompt:
      return prompt;
    case HcUpgradeMessage.releaseNotes:
      return releaseNotes;
    case HcUpgradeMessage.title:
      return title;
    default:
  }
  return null;
}