Internationalization class
Clase encargada de gestionar la internacionalización de la aplicación.
Esta clase permite la traducción de textos según el idioma seleccionado por el usuario. A través de esta clase se accede a los textos localizados en la aplicación. Se utiliza principalmente para gestionar la creación de textos traducidos en los widgets de la UI.
También incluye soporte para la accesibilidad, proporcionando una integración
con los semantics
para mejorar la experiencia de los usuarios con discapacidades.
Constructors
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
-
createLocalizedSemantics(
BuildContext context, String label, String hint, String l10nKey, TextStyle style) → Semantics -
Crea un widget
Semantics
con el texto traducido y accesibilidad. -
getLocalizations(
BuildContext context, String key) → String - Devuelve solo el texto traducido de la clave proporcionada.
-
localizedTextOnlyKey(
BuildContext context, String key, {required TextStyle style}) → Widget - Crea un widget de texto internacionalizado con accesibilidad.
-
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 Properties
- internationalization ↔ Internationalization
-
getter/setter pair