Translation class

Implementers

Constructors

Translation({required String originalTextHash, required String translatedText, required SolvroLocale originalLanguageCode, required SolvroLocale translatedLanguageCode, required bool isApproved, required DateTime createdAt})
const
Translation.fromJson(Map<String, dynamic> json, {ValueSerializer? serializer})
factory

Properties

createdAt DateTime
The date and time the translation was created.
final
hashCode int
The hash code for this object.
no setteroverride
isApproved bool
Whether the translation is approved.
final
originalLanguageCode → SolvroLocale
The language code of the original text.
final
originalTextHash String
The hash of the original text.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
translatedLanguageCode → SolvroLocale
The language code of the translated text.
final
translatedText String
The translated text.
final

Methods

copyWith({String? originalTextHash, String? translatedText, SolvroLocale? originalLanguageCode, SolvroLocale? translatedLanguageCode, bool? isApproved, DateTime? createdAt}) Translation
copyWithCompanion(TranslationsCompanion data) Translation
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toColumns(bool nullToAbsent) Map<String, Expression<Object>>
Converts this object into a map of column names to expressions to insert or update.
toCompanion(bool nullToAbsent) TranslationsCompanion
toJson({ValueSerializer? serializer}) Map<String, dynamic>
Converts this object into a representation that can be encoded with json. The serializer can be used to configure how individual values will be encoded. By default, DriftRuntimeOptions.defaultSerializer will be used. See ValueSerializer.defaults for details.
toJsonString({ValueSerializer? serializer}) String
Converts this object into a json representation. The serializer can be used to configure how individual values will be encoded. By default, DriftRuntimeOptions.defaultSerializer will be used. See ValueSerializer.defaults for details.
inherited
toString() String
A string representation of this object.
override

Operators

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