easy_copy_with 2.0.0 copy "easy_copy_with: ^2.0.0" to clipboard
easy_copy_with: ^2.0.0 copied to clipboard

Package for automatic generation of copyWith methods in Dart classes using @CopyWith annotation.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add easy_copy_with

With Flutter:

 $ flutter pub add easy_copy_with

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  easy_copy_with: ^2.0.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:easy_copy_with/easy_copy_with.dart';
2
likes
150
points
207
downloads

Publisher

unverified uploader

Weekly Downloads

Package for automatic generation of copyWith methods in Dart classes using @CopyWith annotation.

Repository (GitHub)
View/report issues

Topics

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

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, build, meta, source_gen

More

Packages that depend on easy_copy_with