From a816c1aac2181628204619364dd4a6e0b52ac518 Mon Sep 17 00:00:00 2001 From: westito Date: Mon, 30 May 2022 13:25:18 +0200 Subject: [PATCH] Fix typeconverter-depend nullability in DataClass copyWidth --- drift_dev/lib/src/writer/tables/data_class_writer.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drift_dev/lib/src/writer/tables/data_class_writer.dart b/drift_dev/lib/src/writer/tables/data_class_writer.dart index 2547ded1..2a5d0aaa 100644 --- a/drift_dev/lib/src/writer/tables/data_class_writer.dart +++ b/drift_dev/lib/src/writer/tables/data_class_writer.dart @@ -231,7 +231,7 @@ class DataClassWriter { // we can use field.present ? field.value : this.field final getter = column.dartGetterName; - if (wrapNullableInValue && column.nullable) { + if (wrapNullableInValue && column.nullableInDart) { _buffer .write('$getter: $getter.present ? $getter.value : this.$getter,'); } else {