From 2099c3cf197e93c0cab256e6c7dc071019b7e532 Mon Sep 17 00:00:00 2001 From: NeoSon Date: Sat, 14 Dec 2019 19:51:28 +0800 Subject: [PATCH] Update copy_with_generator.dart --- copy_with_extension_gen/lib/src/copy_with_generator.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copy_with_extension_gen/lib/src/copy_with_generator.dart b/copy_with_extension_gen/lib/src/copy_with_generator.dart index e97bc50..a838f26 100644 --- a/copy_with_extension_gen/lib/src/copy_with_generator.dart +++ b/copy_with_extension_gen/lib/src/copy_with_generator.dart @@ -25,7 +25,7 @@ class CopyWithGenerator extends GeneratorForAnnotation { (r, v) => "$r ${v.name}: ${v.name} ?? this.${v.name},", ); - return '''extension CopyWithExtension on ${classElement.name} { + return '''extension ${classElement.name}CopyWithExtension on ${classElement.name} { ${classElement.name} copyWith({$constructorInput}) { return ${classElement.name}($paramsInput); }