Translator class abstract

a simple abstract class to have a common interface for i18n requests.

Implementers

Constructors

Translator.new()

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
translate(String key, {String? defaultValue, Map<String, String> args = const {}}) String

Operators

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

Static Properties

instance Translator
getter/setter pair

Static Methods

tr(String key, {String? defaultValue, Map<String, String> args = const {}}) String
translate the given key and possible named arguments that will be interpolated key the key args and named arguments