MapLocalizationProvider class

Deprecated: Use PreIndexedLocalizationProvider from package:flutter_settings_framework/src/localization/easy_localization_adapter.dart instead, which provides the same functionality with a clearer name.

Kept for backward compatibility.

Implemented types
Annotations
  • @Deprecated('Use PreIndexedLocalizationProvider instead')

Constructors

MapLocalizationProvider(Map<String, Map<String, String>> translations)
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
isReady → bool
Check if the provider is ready to use.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
supportedLocales → List<Locale>
Get all supported locales.
no setteroverride
translations → Map<String, Map<String, String>>
Translations: locale code -> key -> translation.
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
translate(String key, {required Locale locale}) → String
Translate a key to a specific locale.
override

Operators

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