BrowserLocalizations class

Localizations for Browser.

Example

void main() {
  runApp(MaterialApp(
    localizations: [
      ...browserLocalizationsList,
      // ...
    ],
    // ...
  ));
}


final browserLocalizationsList = [
  // Spanish localization
  BrowserLocalizations.forLocale(
    locale: Locale('es'),
    load: (locale) async => BrowserLocalizations(
      couldNotReach: 'No se pudo acceder al sitio web.',
      // ...
    ),
  ),
];

Constructors

BrowserLocalizations({String back = 'Back', String forward = 'Forward', String refresh = 'Refresh', String share = 'Share', String couldNotReach = 'Could not reach the website.', String tryAgain = 'Try again.'})
const

Properties

back String
Tooltip for back button.
final
couldNotReach String
Text that is displayed when an error occurs.
final
forward String
Tooltip for forward button.
final
hashCode int
The hash code for this object.
no setterinherited
refresh String
Tooltip for refresh button.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
share String
Tooltip for sharing button.
final
tryAgain String
Text for a button displayed when an error occurs.
final

Methods

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

forLocale({required Locale locale, required FutureOr<BrowserLocalizations> load(Locale locale)}) LocalizationsDelegate<BrowserLocalizations>
Constructs LocalizationsDelegate for the locale.