Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add common properties with different nullability to base mixin #740

Merged
merged 26 commits into from Nov 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
753c5a7
feat: add common properties with different nullability to base mixin
DevNico Aug 15, 2022
f7b3489
style: fix format
DevNico Aug 15, 2022
3de63e5
feat: common properties with different nullability are non-null in co…
DevNico Aug 16, 2022
78d8526
feat: properties with common super types have getters in base mixin
DevNico Aug 17, 2022
29012d0
feat: properties with common subtypes are available in copyWith
DevNico Aug 18, 2022
fe796dc
fix: fixed failing some failing cases
DevNico Aug 18, 2022
f4f7780
refactor: address pr comments
DevNico Aug 20, 2022
5fc858c
Remove dead code
rrousselGit Sep 27, 2022
5ea73b9
Remove more dead code
rrousselGit Sep 27, 2022
db001c0
check for correct getter types in tests
DevNico Sep 28, 2022
6d4ef80
Merge remote-tracking branch 'upstream/master'
DevNico Sep 28, 2022
98d294b
fix test for analyzer 5
DevNico Sep 28, 2022
0ea877a
small refactor
DevNico Sep 28, 2022
d52f6cb
chore: update sponsors.svg
github-actions[bot] Oct 2, 2022
230e586
Test pub downgrade via matrix (#776)
SunlightBro Oct 6, 2022
ac473e9
chore: Cache flutter sdk in the CI (#777)
SunlightBro Oct 7, 2022
94cae76
Merge remote-tracking branch 'upstream/master'
DevNico Oct 8, 2022
6f3bfe8
re-add expect_error dependency
DevNico Oct 8, 2022
400c517
Merge branch 'master' of https://github.com/rrousselGit/freezed into …
rrousselGit Nov 29, 2022
41aae94
Fix error
rrousselGit Nov 29, 2022
253ae77
Cleanup
rrousselGit Nov 29, 2022
eb731cc
Improve tests
rrousselGit Nov 29, 2022
4e798fb
Remove generated/typedef support
rrousselGit Nov 29, 2022
07e7ce2
Update tests
rrousselGit Nov 29, 2022
c578a5e
Fix tests and handle {int a}|{int? a}.copyWith({int a})
rrousselGit Nov 30, 2022
2f9c522
Remove dead code
rrousselGit Nov 30, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/_internal/lib/models.dart
Expand Up @@ -25,14 +25,14 @@ String constructorNameToCallbackName(String name) => name;
/// This allows Freezed to support deep copy of the object.
/// This does include primitives like [int] and [List].
@freezed
class CloneableProperty with _$CloneableProperty {
factory CloneableProperty({
class DeepCloneableProperty with _$DeepCloneableProperty {
factory DeepCloneableProperty({
required String name,
required String typeName,
required String type,
required bool nullable,
required GenericsParameterTemplate genericParameters,
}) = _CloneableProperty;
}) = _DeepCloneableProperty;
}

/// The information of a specific constructor of a class tagged with `@freezed`.
Expand All @@ -55,7 +55,7 @@ class ConstructorDetails with _$ConstructorDetails {
required List<String> withDecorators,
required List<String> implementsDecorators,
required List<String> decorators,
required List<CloneableProperty> cloneableProperties,
required List<DeepCloneableProperty> cloneableProperties,
required List<AssertTemplate> asserts,
}) = _ConstructorDetails;

Expand Down