Releases: numen31337/copy_with_extension
Releases · numen31337/copy_with_extension
Analyzer version bump
- Updating
analyzer
to>=2.0.0 <7.0.0
(thanks @shilangyu).
Dart version bump
- Updating
sdk
to>=3.0.0 <4.0.0
Fallback in constructor
- Fix Allow having a nullable constructor parameter with a fallback for a non-nullable class field.
Nullability handling fix
Positioned constructor parameters
- Allow positioned constructor parameters (thanks @mrgnhnt96).
- Ability to define library defaults settings globally (thanks @mrgnhnt96).
Private classes support + lint correction
- Suppressing lint warnings for
library_private_types_in_public_api
. - Classes that are declared as private will get a private
copyWith
extension.
Analyser update
- Updating
analyzer
to>=2.0.0 <5.0.0
Bugfix
copyWith(...) nullability support
- BREAKING
copyWith(...)
function now correctly supports nullification of nullable fields like socopyWith(id: null)
. - BREAKING
CopyWith
annotation for named constructornamedConstructor
is renamed toconstructor
to be in sync with json_serializable.
Copy with field support
- Updating
analyzer
to>=2.0.0 <4.0.0
- Named constructor support.
- Better error reporting.
- Introduction of the new
copyWith
function with nullability support. The default behaviour of this library assumes that this function is used as follows:myInstance.copyWith.value("newValue")
. The old functionality is still available. - BREAKING
generateCopyWithNull
is renamed tocopyWithNull
.