Skip to content

Commit

Permalink
Merge pull request #1 from glaciusmss/master
Browse files Browse the repository at this point in the history
Add prefix with class name
  • Loading branch information
numen31337 authored Dec 15, 2019
2 parents a59400e + 2099c3c commit 0c5ed4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion copy_with_extension_gen/lib/src/copy_with_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class CopyWithGenerator extends GeneratorForAnnotation<CopyWith> {
(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);
}
Expand Down

0 comments on commit 0c5ed4f

Please sign in to comment.