message method
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;
}