copy_annotation 1.0.0 copy_annotation: ^1.0.0 copied to clipboard
Annotation for generating extension on object copy with code generation
Automatically create copy
method for data classes.
Work together with copy_annotation_gen to generate code.
Example #
@copy
class Employee {
final int id;
final String name;
Employee({required this.id,required this.name})
}
final emp1 = Employee(id:1,name:"John");
final emp2 = emp1.copy(id:2,name:"Mina");