0 purchases
copy annotation gen
Generate copy extension for class that annotated with @copy from copy_annotation.
Installation #
dev_dependencies:
...
build_runner: ^latest_version
copy_annotation_gen: ^latest_version
copied to clipboard
Usage #
part 'employee.g.dart'
@copy
class Employee {
final int id;
final String name;
Employee({required this.id,required this.name})
}
copied to clipboard
and run
flutter pub run build_runner build --delete-conflicting-outputs
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.