LocalTranslationWithInterface class
A class that extends the Translation class and implements the TranslationResults interface.
- Inheritance
-
- Object
- Translation
- LocalTranslationWithInterface
Constructors
- LocalTranslationWithInterface.fromTranslation(Translation translation)
- Creates a new LocalTranslationWithInterface from a Translation object.
Properties
- createdAt → DateTime
-
The date and time the translation was created.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isApproved → bool
-
Whether the translation is approved.
finalinherited
- originalLanguageCode → SolvroLocale
-
The language code of the original text.
finalinherited
- originalTextHash → String
-
The hash of the original text.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- translatedLanguageCode → SolvroLocale
-
The language code of the translated text.
finalinherited
- translatedText → String
-
The translated text.
finalinherited
Methods
-
copyWith(
{String? originalTextHash, String? translatedText, SolvroLocale? originalLanguageCode, SolvroLocale? translatedLanguageCode, bool? isApproved, DateTime? createdAt}) → Translation -
inherited
-
copyWithCompanion(
TranslationsCompanion data) → Translation -
inherited
-
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.
inherited
-
toCompanion(
bool nullToAbsent) → TranslationsCompanion -
inherited
-
toJson(
{ValueSerializer? serializer}) → Map< String, dynamic> -
Converts this object into a representation that can be encoded with
json. The
serializercan be used to configure how individual values will be encoded. By default,DriftRuntimeOptions.defaultSerializerwill be used. SeeValueSerializer.defaultsfor details.inherited -
toJsonString(
{ValueSerializer? serializer}) → String -
Converts this object into a json representation. The
serializercan be used to configure how individual values will be encoded. By default,DriftRuntimeOptions.defaultSerializerwill be used. SeeValueSerializer.defaultsfor details.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited