mutable_copy_generator 0.2.6 copy "mutable_copy_generator: ^0.2.6" to clipboard
mutable_copy_generator: ^0.2.6 copied to clipboard

Mutable copy generator simplify copy of immutable object. Unlike CopyWith allow to set null value

example/example.dart

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

part 'example.g.dart';

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

  SimpleObject({this.id, this.value});
}
1
likes
40
pub points
0%
popularity

Publisher

unverified uploader

Mutable copy generator simplify copy of immutable object. Unlike CopyWith allow to set null value

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

analyzer, build, mutable_copy, path, source_gen

More

Packages that depend on mutable_copy_generator