You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes. The the containing class will not know that there is a new, updated instance of the contained class. So you will have to update the containing class by passing the updated contained class through the copyWith method.
I am using
equatable
as you describe in your course.How do you manage when one class contains another and the contained class gets updated?
All the examples I find use a
copyWith
approach with non-positional arguments.Is this the best practices way to do it?
TIA
The text was updated successfully, but these errors were encountered: