We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When extending another packages' serializers you can addAll their serializers however I don't think there is a way to add all their BuilderFactories?
addAll
It would be great if you can do this:
import 'package:foobar/foobar.dart' as mypackage; // ... final Serializers serializers = (_$serializers.toBuilder() ..addAll(mypackage.serializers.serializers) ..addAllBuilderFactories(mypackage.serializers.builderFactories); ).build();
It would also be nice to addAllPlugins too but this would be less useful.
The text was updated successfully, but these errors were encountered:
I think what you want is the merge and mergeAll methods
merge
mergeAll
https://pub.dev/documentation/built_value/latest/serializer/SerializersBuilder/merge.html https://pub.dev/documentation/built_value/latest/serializer/SerializersBuilder/mergeAll.html
They merge serializers and builder factories but not plugins.
Sorry, something went wrong.
...of course you'd already thought of it! Thanks @davidmorgan
davidmorgan
No branches or pull requests
When extending another packages' serializers you can
addAll
their serializers however I don't think there is a way to add all their BuilderFactories?It would be great if you can do this:
It would also be nice to addAllPlugins too but this would be less useful.
The text was updated successfully, but these errors were encountered: