Skip to content

Releases: numen31337/copy_with_extension

Analyzer version bump

14 Aug 08:34
Compare
Choose a tag to compare
  • Updating analyzer to >=2.0.0 <7.0.0 (thanks @shilangyu).

Dart version bump

13 Jun 19:46
Compare
Choose a tag to compare
  • Updating sdk to >=3.0.0 <4.0.0

Fallback in constructor

27 Feb 18:14
Compare
Choose a tag to compare
  • Fix Allow having a nullable constructor parameter with a fallback for a non-nullable class field.

Nullability handling fix

26 Feb 23:16
Compare
Choose a tag to compare
  • Fix Warnings when using the ? operator on a dynamic type.
  • Fix Warnings when using the ! operator on a non-nullable type.
  • Fix Crash when object contains a dynamic field that is null.

Positioned constructor parameters

02 Dec 23:18
Compare
Choose a tag to compare
  • Allow positioned constructor parameters (thanks @mrgnhnt96).
  • Ability to define library defaults settings globally (thanks @mrgnhnt96).

Private classes support + lint correction

05 Aug 20:26
Compare
Choose a tag to compare
  • Suppressing lint warnings for library_private_types_in_public_api.
  • Classes that are declared as private will get a private copyWith extension.

Analyser update

19 May 21:30
Compare
Choose a tag to compare
  • Updating analyzer to >=2.0.0 <5.0.0

Bugfix

03 Feb 12:42
Compare
Choose a tag to compare
  • Fix for passing null into copyWith function for non-nullable values.

copyWith(...) nullability support

06 Jan 20:02
Compare
Choose a tag to compare
  • BREAKING copyWith(...) function now correctly supports nullification of nullable fields like so copyWith(id: null).
  • BREAKING CopyWith annotation for named constructor namedConstructor is renamed to constructor to be in sync with json_serializable.

Copy with field support

22 Dec 21:54
Compare
Choose a tag to compare
  • 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 to copyWithNull.