copy_with_extension 1.0.3 copy "copy_with_extension: ^1.0.3" to clipboard
copy_with_extension: ^1.0.3 copied to clipboard

outdated

Annotation for generating `copyWith` extensions code using `copy_with_extension_gen`.

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});
}
95
likes
0
pub points
98%
popularity

Publisher

verified publisheroleksandrkirichenko.com

Annotation for generating `copyWith` extensions code using `copy_with_extension_gen`.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on copy_with_extension