UsedTypeConverter class Null safety

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.
read-only
hashCode int
The hash code for this object.
read-only, inherited
hasNullableDartType bool
read-only
index int?
Index of this converter in the table in which it has been created.
read / write
mappedType DriftDartType
The type that will be present at runtime.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sqlType ColumnType
The type that will be written to the database.
final
table MoorTable?
The table using this type converter.
read / write
tableAndField String
A Dart expression resolving to this converter.
read-only

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 non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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