Translation class
Constructors
- Translation({required String uuid, required String sourceUUID, required String content, required String translatorUUID, required Locale language})
-
const
- Translation.fromJson(String source)
-
factory
-
Translation.fromMap(Map<
String, dynamic> map) -
factory
Properties
- content → String
-
Translated text
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- language → Locale
-
Language of translation
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
source
→ Future<
SourceText> -
no setter
- sourceUUID → String
-
The translation source text.
UUID of SourceText
final
-
translator
→ Future<
User> -
no setter
- translatorUUID → String
-
Uuid of translator
final
- uuid → String
-
final
Methods
-
copyWith(
{String? uuid, String? sourceUUID, String? content, String? translatorUUID, Locale? language}) → Translation -
getVotes(
{int limit = 50, int skip = 0}) → Future< ListModelResponse< TranslationVote> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
getByUUID(
String uuid) → Future< Translation> -
list(
{SourceText? sourceText, Locale? language, User? translator, int limit = 50, int skip = 0}) → Future< ListModelResponse< Translation> >