adeptgenerator 10.0.2+1 adeptgenerator: ^10.0.2+1 copied to clipboard
This generator creates a function that returns a new instance of the annotated ClassType by creating a copy of the currentData and replacing its fields with the newData
10.0.1+1 #
Fixed #
- Synthetic fields without getter or setter are ignored when generating copyWith code.
8.0.0+1 #
Changed #
- Update dependency constraints to
sdk: '>=3.0.0 <4.0.0' flutter: '>=3.3.0'
- Update dependencies to be compatible with Flutter 3.10.0
2.1.0+11 #
Added #
- @CloneKey added
cloneFunction
to be used for specific cloning on a field. - @CloneKey added
considerEmptyCollectionAsNull
to ignore data from collections if it's empty as it were null. - @DiffKey added
diffFunction
to be used for specific diff on a field.
2.0.1+10 #
Added #
- Support for @CloneKey
defaultValue
to be used if the currentData or newData isnull
. - Support for @DiffKey
defaultValue
to be used if currentData and newData are equal.
1.3.0+6 #
Added #
- New generator for @Differentiable() and @DiffKey annotations from adeptannotations package.
- New property forceCurrentData on @CloneKey() annotation
1.2.0+3 #
- Generator updated to work with ignoreSynthetic from Cloneable annotation
- Static, const and final fields excluded from cloning
- Validations added to ensure synthetics fields are properly defined to be used in cloning
1.1.0+2 #
- CloneKey ignore flag is taken into account to ignore fields while cloning
1.0.0+1 #
- Readme updated
1.0.0 #
- First release