mirror of https://github.com/AMT-Cheif/drift.git
Fix typeconverter-depend nullability in DataClass copyWidth
This commit is contained in:
parent
a604eeddaf
commit
a816c1aac2
|
@ -231,7 +231,7 @@ class DataClassWriter {
|
||||||
// we can use field.present ? field.value : this.field
|
// we can use field.present ? field.value : this.field
|
||||||
final getter = column.dartGetterName;
|
final getter = column.dartGetterName;
|
||||||
|
|
||||||
if (wrapNullableInValue && column.nullable) {
|
if (wrapNullableInValue && column.nullableInDart) {
|
||||||
_buffer
|
_buffer
|
||||||
.write('$getter: $getter.present ? $getter.value : this.$getter,');
|
.write('$getter: $getter.present ? $getter.value : this.$getter,');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue