mek_data_class_generator 4.1.1
mek_data_class_generator: ^4.1.1 copied to clipboard
Code generator for data_class to generate `hashCode`, `==`, `toString`, `copyWith` and `change` methods
4.1.1 #
- build: require
analyzer: ^9.0.0 - build: require
build: ^4.0.3 - build: require
source_gen: ^4.1.1 - build: require
source_helper: ^1.3.9
4.1.0 #
- chore: bumped min dart version to
3.8.0
4.0.0 #
- feat: the
copyWithmethod now supportsnullthrough the use of theFutureOrtype andUnspecifiedclass - feat!: The
*Changesand*Builderclasses now expose*Changesand*Builderfields when possible - feat: to string only use non-abstract and non-late class fields
- feat: equality only use non-abstract and non-late class fields
- feat: data class modifiers only use constructor parameters
- build: allow
code_builder: ^4.4.0 - refactor!: removed support for
DataClass.createFieldsClassas it is supported by thejson_serializablepackage - refactor!: all
*Changesand*Builderclasses are public
3.0.1 #
- build: Allow
build: '>=3.0.0 <5.0.0' - build: Allow
source_gen: '>=3.1.0 <5.0.0', stop using deprecatedTypeChecker.fromRuntimeand use the newTypeChecker.typeNamedinstead
3.0.0 #
- build: bumped
analyzerdependency to>=7.4.0 <9.0.0 - refactor!: removed support to namespace (prefix imports):
library.Product
2.0.3 #
- fix: fixed use of deprecated analyzer APIs
2.0.2 #
- fix: use raw strings when the class or field name contains the
$character
2.0.1 #
- fix: Removed unnecessary null assertion in *Builder classes #32
- chore: The user is informed with a warning if the no longer supported
page_widthproperty is used
2.0.0 #
- refactor!: renamed builder on
build.yamlfile frommek_data_class_generator:data_classtomek_data_class_generator - refactor!: removed support of
page_widthfrombuild.yamlrunner options. Please useformatter: { page_width: 100 }inanalysis_options.yamlfile - build: bumped
analyzerdependency to>=6.9.0 <8.0.0 - build: bumped
builddependency to^2.4.1 - build: bumped
dart_styledependency to^3.0.0 - build: bumped
code_builderdependency to^4.5.0
1.5.1 #
- fix: Fixes prefer_final_locals lint on hashcode method
- chore: Update analyzer dependency
1.5.0 #
- feat: Added support for
*Builder. You can now build your class via a Builder
1.4.0 #
- feat: support change
*Fieldsclass visibility byDataClass.fieldsClassVisibleparam - fix: suppress
unused_elementlint when*Fieldsclass is private
1.3.1 #
- fix: private fields class generation
1.3.0 #
1.2.0 #
- feat: You can pass your
Equalityclasses toDataClass(equalities: [...]) - chore: Added support for dart
3.0
1.1.1 #
- fix: hashcode generation
- perf: New hashCode and == operator generation, have better performance. #12
1.1.0 #
- feat: allow positional parameters on data class constructors
- refactor: improve code style using code_builder package
1.0.2 #
- fix: bug when annotated classes also use mixins
1.0.1 #
- fix: InconsistentAnalysisException
1.0.0 #
- feat: customization of the equal operator and hashcode through the use of the Equality class
- feat: namespace support (prefix imports):
library.Product - feat: Can define on the yaml file whether the toString method should include all fields of the class or only the parameters of the constructor
BREAKING CHANGES:
- refactor: use snake_case in yaml file
0.4.0 #
- fix: generate a
copyWithand*Changeswith not updatable parameters - fix: generate a
copyWithand*Changeswith parameters that do not exist in the constructors - feat: Added
json_serializablesupport for creating the*Fieldsclass. 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.createFieldsClassto 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
copyWithmethod
0.1.0 #
- Fix
hashcodemethod generation - Removed
@overrideannotation to reduce generated code - Now the
_propsmethod is an iterable to improve performance
0.0.3+1 #
- Fix example documentation links
0.0.3 #
- Expose
updatemethod in*Changesclass to update a class with function - Expose
replacemethod to update*Changesclass with all DataClass properties
0.0.1 #
- Initial version.