Pub Package

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");

Libraries

copy_annotation