CopyWith set null? #956
Closed
jopmiddelkamp
started this conversation in
General
Replies: 2 comments
-
|
It's relying on default values. copyWith({param = sentinel}) {
if (param!= sentinel)
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thanks for your quick reply! I think I see what you mean now! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How does the copyWith method understand which argument has been set to null and, as a result, knows to reset that property?
Beta Was this translation helpful? Give feedback.
All reactions