I18n class

Constructors

I18n(dynamic instance)

Properties

hashCode int
The hash code for this object.
no setterinherited
instance ↔ dynamic
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

get(dynamic text, {Map vars = const {}}) → dynamic
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

builder(String sourceText, Widget builder(String translatedText)) Widget
childBuilder(String sourceText, Widget builder(String translatedText, Widget child), Widget child) Widget
init({required String url, Map<String, String>? headers, String sourceLocale = 'en', String? locale, List<String>? locales}) → dynamic
text(String sourceText) Widget