UpgraderMessages class

The default localized messages used for display in upgrader. Extend this class to provide custom values and new localizations for languages. An example to replace the Ignore button with a custom value would be:

class MyUpgraderMessages extends UpgraderMessages {
  @override
  String get buttonTitleIgnore => 'My Ignore';
}

UpgradeAlert(messages: MyUpgraderMessages());

Constructors

UpgraderMessages({String? code})
Provide a code to override the system-reported default locale.

Properties

body String
The body of the upgrade message. This string supports mustache style template variables: {{appName}} {{currentAppStoreVersion}} {{currentInstalledVersion}} Example: 'A new version of Upgrader is available! Version 1.2 is now available-you have 1.0.'; Override this getter to provide a custom value. Values provided in the message function will be used over this value.
no setter
buttonTitleIgnore String
The ignore button title. Override this getter to provide a custom value. Values provided in the message function will be used over this value.
no setter
buttonTitleLater String
The later button title. Override this getter to provide a custom value. Values provided in the message function will be used over this value.
no setter
buttonTitleUpdate String
The update button title. Override this getter to provide a custom value. Values provided in the message function will be used over this value.
no setter
hashCode int
The hash code for this object.
no setterinherited
languageCode String
The primary language subtag for the locale, which defaults to the system-reported default locale of the device.
final
prompt String
The call to action prompt message. Override this getter to provide a custom value. Values provided in the message function will be used over this value.
no setter
releaseNotes String
The release notes message. Override this getter to provide a custom value. Values provided in the message function will be used over this value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
The alert dialog title. Override this getter to provide a custom value. Values provided in the message function will be used over this value.
no setter

Methods

message(UpgraderMessage messageKey) String?
Override the message function to provide custom language localization.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

findLanguageCode({BuildContext? context}) String
Determine the current language code, either from the context, or from the system-reported default locale of the device.