-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Add a copyWith
method to the Product
object
#852
Comments
We should both be in bed ATM :-) |
@g123k Currently in Smoothie we do copy // TODO(monsieurtanuki): move code to off-dart Product?
Product copy(final Product source) => Product.fromJson(
jsonDecode(jsonEncode(source.toJson())) as Map<String, dynamic>,
); Moving this |
I didn't know about this in the app 👍 |
Hi everyone,
The
Product
object has non-final fields, but when we want to use theProduct
class as immutable, each client must code it. It would be nice to integrate it directly into the SDK.The text was updated successfully, but these errors were encountered: