MoosylLocalization class

A class that provides localization support for the Moosyl package.

This class contains a static constant delegate which is used to load the localized resources for the application.

Example usage:

MaterialApp(
  localizationsDelegates: [MoosylLocalization.delegate],
  // other properties...
)

Constructors

MoosylLocalization()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

of(BuildContext context) MoosylLocalization?
Retrieves the MoosylLocalization instance from the given context.

Constants

delegate → const LocalizationsDelegate<MoosylLocalization>
A delegate that provides localization support for the Moosyl package.
localizationsDelegates → const List<LocalizationsDelegate>
A list of delegates that provide localization support for the Moosyl package, Material, and Cupertino.
supportedLocales → const List<Locale>
A list of supported locales for the Moosyl package.