master #81

Closed
malo wants to merge 322 commits from master into feat/bloc_layout/new-package
2 changed files with 7 additions and 10 deletions
Showing only changes of commit 6c9b6e239b - Show all commits

View File

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

View File

@ -12,7 +12,7 @@ dependencies:
source_gen: ^1.2.7 source_gen: ^1.2.7
analyzer: ^5.4.0 analyzer: ^5.4.0
wyatt_component_copy_with_extension: wyatt_component_copy_with_extension:
git: git:
url: ssh://git@git.wyatt-studio.fr:993/Wyatt-FOSS/wyatt-packages.git url: ssh://git@git.wyatt-studio.fr:993/Wyatt-FOSS/wyatt-packages.git
path: packages/wyatt_component_copy_with_extension path: packages/wyatt_component_copy_with_extension