UsedTypeConverter class

Constructors

UsedTypeConverter({required String expression, required DriftDartType mappedType, required ColumnType sqlType, bool alsoAppliesToJsonConversion = false})
UsedTypeConverter.forEnumColumn(DartType enumType, bool nullable)
factory

Properties

alsoAppliesToJsonConversion bool
Whether this type converter should also be used in the generated JSON serialization.
final
expression String
The expression that will construct the type converter at runtime. The type converter constructed will map a mappedType to the sqlType and vice-versa.
final
fieldName String
Type converters are stored as static fields in the table that created them. This will be the field name for this converter.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasNullableDartType bool
no setter
index int?
Index of this converter in the table in which it has been created.
getter/setter pair
mappedType DriftDartType
The type that will be present at runtime.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sqlType ColumnType
The type that will be written to the database.
final
table MoorTable?
The table using this type converter.
getter/setter pair
tableAndField String
A Dart expression resolving to this converter.
no setter

Methods

converterNameInCode(GenerationOptions options) String
A suitable typename to store an instance of the type converter used here.
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