We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93694d9 commit 315bf8aCopy full SHA for 315bf8a
working/macros/example/data_class.dart
@@ -123,7 +123,7 @@ macro class _CopyWith implements ClassDeclarationsMacro {
123
var namedParams = [
124
for (var field in allFields)
125
ParameterCode.fromString(
126
- '${field.type.toCode()}${field.type.isNullable ? '' : '?'} '
+ '${field.type.toCode()}${field.type.isNullable ? '?' : ''} '
127
'${field.name}'),
128
];
129
var args = [
0 commit comments