Releases: numen31337/copy_with_extension
Releases · numen31337/copy_with_extension
No null for non-nullable fields
- BREAKING The
copyWith
function no longer acceptsnull
for non-nullable fields to prevent ambiguity and errors.
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.