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

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({this.id, this.value});
}
179
likes
0
pub points
94%
popularity

Publisher

verified publisheroleksandrkirichenko.com

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

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

analyzer, copy_with_extension, source_gen

More

Packages that depend on copy_with_extension_gen