easy_copy_with_annotation 1.0.0 copy "easy_copy_with_annotation: ^1.0.0" to clipboard
easy_copy_with_annotation: ^1.0.0 copied to clipboard

Annotations for the easy_copy_with code generator. Add @CopyWith() to your Dart classes.

easy_copy_with_annotation #

pub package

Annotations for the easy_copy_with code generator.

Usage #

Add easy_copy_with_annotation as a dependency and easy_copy_with as a dev dependency:

dependencies:
  easy_copy_with_annotation: ^1.0.0

dev_dependencies:
  easy_copy_with: ^4.0.0
  build_runner: ^2.10.4

Annotate your classes:

import 'package:easy_copy_with_annotation/easy_copy_with_annotation.dart';

part 'user.g.dart';

@CopyWith()
class User {
  final String name;
  final int age;

  const User({required this.name, required this.age});
}

See the easy_copy_with package for full documentation.

0
likes
160
points
367
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Annotations for the easy_copy_with code generator. Add @CopyWith() to your Dart classes.

Repository (GitHub)
View/report issues

Topics

#codegen #copy-with #code-generation #annotation

License

MIT (license)

More

Packages that depend on easy_copy_with_annotation