Translation class

Translation model source - original text which was translated sourceLanguage - language from which source was translated translations - map with language as key and translated source as value

Constructors

Translation({required String source, required LanguageCode sourceLanguage, required Map<LanguageCode, String> translations})
const
Translation.forEmptySource(String sourceLanguage, List<String> targets)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String
final
sourceLanguage LanguageCode
final
translations Map<LanguageCode, String>
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

Operators

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