copy_with_extension 2.0.0-nullsafety.1
copy_with_extension: ^2.0.0-nullsafety.1 copied to clipboard
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';
@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, this.value});
}