GettextLocalizations class

A class that holds the translations

Constructors

GettextLocalizations.fromPO(String poContent)
Write the translations from a PO file to the Gettext instance

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? keyPlural, List<Object>? pArgs, Map<String, Object>? nArgs, String? domain, String msgctxt = ''}) String
Returns the translation of a string

Operators

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

Static Methods

of(BuildContext context) GettextLocalizations
Getter for localizations of context