copy_with_extension_gen 2.0.3 copy "copy_with_extension_gen: ^2.0.3" to clipboard
copy_with_extension_gen: ^2.0.3 copied to clipboard

SDKDart
outdated

Automatically generating `copyWith` extensions code for classes with `@CopyWith()` annotation.

example/example.dart

import 'package:meta/meta.dart' show immutable;
import 'package:copy_with_extension/copy_with_extension.dart';

/// Make sure that `part` is specified, even before launching the builder
/// part 'example.g.dart';

@immutable
@CopyWith()
class SimpleObject {
  final String id;
  final int value;

  /// Make sure that constructor has named parameters (wrapped in curly braces)
  SimpleObject({required this.id, required this.value});
}
188
likes
130
pub points
94%
popularity

Publisher

verified publisheralexander-kirsch.com

Automatically generating `copyWith` extensions code for classes with `@CopyWith()` annotation.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, build, copy_with_extension, source_gen

More

Packages that depend on copy_with_extension_gen