mek_data_class_generator 0.4.0
mek_data_class_generator: ^0.4.0 copied to clipboard
Code generator for data_class to generate `hashCode`, `==`, `toString`, `copyWith` and `change` methods
0.4.0 #
- fix: generate a
copyWith
and*Changes
with not updatable parameters - fix: generate a
copyWith
and*Changes
with parameters that do not exist in the constructors - feat: Added
json_serializable
support for creating the*Fields
class. Now if the given class has@JsonSerializable(createFieldMap: true)
it will read its map values.
BREAKING CHANGES:
- refactor: removed method
*Changes.replace
. You can directly assign the value and then call change. Instead of:order.change((c) => c.product.change((c) => c..replace(product)..title = 'New Title'))
. Uses:order.change((c) => c.product = product.change((c) => c..title = 'New Title'))
0.3.1 #
- feat: support analyzer
>=4.0.0 <6.0.0
0.3.0 #
- feat: Added support for type aliases (typedef)
0.2.0 #
- Added
DataClass.createFieldsClass
to create a class that contains the names of the fields of the Data Class
0.1.4 #
- fix generation for fields on abstract class
0.1.3 #
- feat update analyzer dependency
0.1.1 #
- Fix nested null type when generating
copyWith
method
0.1.0 #
- Fix
hashcode
method generation - Removed
@override
annotation to reduce generated code - Now the
_props
method is an iterable to improve performance
0.0.3+1 #
- Fix example documentation links
0.0.3 #
- Expose
update
method in*Changes
class to update a class with function - Expose
replace
method to update*Changes
class with all DataClass properties
0.0.1 #
- Initial version.