adeptgenerator
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
15.0.0
What this package is like to depend on
Last release 6 days ago
17 Aug 2026
Ships unpredictably
gaps range from 8 days to 1.4 years
Nearly every release is documented
notes for 35 of 35 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
35 releases · first in 2020
8 releases in the last 12 months
see the full history below
Release timeline
35 releases · Jul 2020 to Aug 2026
2021
2022
2023
2024
2025
2026
Releases
latest 35-
15.0.017 Aug 2026Release notes
Open source →Added
- Fields contributed by a mixin are now generated as fields of the annotated class by the clone, copyWith, diff and isEmpty generators.
Changed
- Field types are now resolved against the annotated class, so type arguments of generic superclasses and mixins are substituted instead of emitting the raw type parameter.
copyWithnow assigns mixin fields with a cascade after the constructor call and skips final mixin fields.
Fixed
- A field declared more than once across the hierarchy is now generated only once, honoring the most derived declaration and its
@CloneKey,@CopyWithKey,@DiffKeyor@IsEmptyKeyannotation. - Private fields declared in another library are no longer generated.
-
14.2.031 Jul 2026 -
14.1.003 Jun 2026 -
14.0.017 Feb 2026Release notes
Open source →Changed
- Collections are now cloned using
.toList(), .toSet(), .toMap()accordingly.
- Collections are now cloned using
-
13.2.013 Feb 2026 -
13.1.026 Nov 2025 -
13.0.119 Sep 2025 -
13.0.010 Sep 2025Release notes
Open source →Changed
- Updated dependencies analyzer to use
build: ^4.0.0,source_gen: ^4.0.1andanalyzer: ^8.1.1
- Updated dependencies analyzer to use
-
12.0.028 Jul 2025Release notes
Open source →Changed
- Updated dependencies analyzer to use
build: ^3.0.0,source_gen: ^3.0.0andadeptannotations: ^7.0.0
- Updated dependencies analyzer to use
-
11.0.022 Apr 2025Release notes
Open source →Changed
- Updated dependencies analyzer to use ^7.0.0 and source_gen to use ^2.0.0
-
10.0.2+127 Nov 2023 -
10.0.1+106 Oct 2023Release notes
Open source →Fixed
- Synthetic fields without getter or setter are ignored when generating copyWith code.
-
10.0.0+129 Sep 2023 -
9.0.0+128 Sep 2023 -
8.0.0+119 May 2023Release notes
Open source →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
- Update dependency constraints to
-
7.0.0+1906 Feb 2023Release notes
Open source →Changed
- Updated to support latest Flutter 3.7 and
adeptannotations: ^3.0.0+9
- Updated to support latest Flutter 3.7 and
-
6.0.0+1804 Feb 2023 -
5.0.0+1718 Nov 2022 -
4.0.0+1608 Jul 2022 -
3.0.3+1504 Apr 2022 -
3.0.2+1421 Feb 2022 -
3.0.1+1315 Sep 2021 -
3.0.0+1214 Sep 2021 -
2.1.0+1112 Aug 2021Release notes
Open source →Added
- @CloneKey added
cloneFunctionto be used for specific cloning on a field. - @CloneKey added
considerEmptyCollectionAsNullto ignore data from collections if it's empty as it were null. - @DiffKey added
diffFunctionto be used for specific diff on a field.
- @CloneKey added
-
2.0.1+1003 May 2021Release notes
Open source →Added
- Support for @CloneKey
defaultValueto be used if the currentData or newData isnull. - Support for @DiffKey
defaultValueto be used if currentData and newData are equal.
- Support for @CloneKey
-
2.0.0+915 Apr 2021 -
1.3.1+728 Jan 2021 -
1.3.1+829 Jan 2021 -
1.3.0+623 Oct 2020Release notes
Open source →Added
- New generator for @Differentiable() and @DiffKey annotations from adeptannotations package.
- New property forceCurrentData on @CloneKey() annotation
-
1.2.2+521 Oct 2020 -
1.2.1+410 Oct 2020 -
1.2.0+331 Aug 2020Release notes
Open source →- 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+213 Aug 2020Release notes
Open source →- CloneKey ignore flag is taken into account to ignore fields while cloning
-
1.0.030 Jul 2020 -
1.0.0+130 Jul 2020