google / google/built_value.dart

Feature request: SerializersBuilder addAllBuilderFactories

Open
#1,230 2 comments 0 reactions 1 assignee Claimed by @davidmorgan View on GitHub
question
Dominant language
Dart
Stars
886
Forks
195
Avg merge
1d 11h
Merged PRs (30d)
4

Description

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:
```dart

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.