From 151c374bfed76ed5798140a7f5e778c76ee3feca Mon Sep 17 00:00:00 2001 From: Simon Binder Date: Fri, 21 Jun 2019 21:07:06 +0200 Subject: [PATCH] Fix outdated use of Value.use() in generated code --- moor_generator/lib/src/writer/data_class_writer.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); }