diff --git a/moor_generator/lib/src/writer/data_class_writer.dart b/moor_generator/lib/src/writer/data_class_writer.dart index b873ef88..d09b79a1 100644 --- a/moor_generator/lib/src/writer/data_class_writer.dart +++ b/moor_generator/lib/src/writer/data_class_writer.dart @@ -233,7 +233,7 @@ class DataClassWriter { for (var column in table.columns) { final getter = column.dartGetterName; buffer.write('$getter: $getter == null && nullToAbsent ? ' - 'const Value.absent() : Value.use($getter),'); + 'const Value.absent() : Value($getter),'); } buffer.write(') as T;}\n'); }