Skip to content

Feature request: SerializersBuilder addAllBuilderFactories #1230

@jimmyff

Description

@jimmyff

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions