master #81
@ -17,7 +17,6 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:analyzer/dart/element/element.dart';
|
||||
import 'package:analyzer/dart/element/nullability_suffix.dart';
|
||||
import 'package:build/build.dart';
|
||||
import 'package:source_gen/source_gen.dart';
|
||||
import 'package:wyatt_component_copy_with_extension/component_copy_with_extension.dart';
|
||||
@ -61,12 +60,10 @@ class ComponentProxyGenerator
|
||||
generatedCode.write('${element.displayName} call({');
|
||||
|
||||
for (final field in element.constructors.first.parameters) {
|
||||
if (field.type.nullabilitySuffix == NullabilitySuffix.question) {
|
||||
generatedCode.write('${field.type.getDisplayString(
|
||||
withNullability: false,
|
||||
)}? ${field.displayName}, ');
|
||||
}
|
||||
}
|
||||
|
||||
generatedCode.write('});}');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user