google/built_value.dart

Feature request: SerializersBuilder addAllBuilderFactories

jimmyff opened this issue · 2 comments

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:

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.

...of course you'd already thought of it! Thanks @davidmorgan