Restore possibility to use reflective API to create default field values using getField() (#453)

We do not actually have to prevent/throw when trying to create a default
value for a PbMap field.

Initially when working on removing BuilderInfo references it was
necessary to remove default creation of map fields due to not
having the [BuilderInfo] object for the map which was required for the
PbMap constructor.

Though a later iteration of that CL removed the 3rd parameter to PbMap
(or rather made that parameter optional and ignored):

  -  PbMap(this.keyFieldType, this.valueFieldType, this._entryBuilderInfo)

  +  // The provided [info] will be ignored.
  +  PbMap(this.keyFieldType, this.valueFieldType, [BuilderInfo? info])

So we can restore `defaultOrMake()`.
2 files changed
tree: 8788328d1950012b6bf382646a86e2f49fadda0d
  1. api_benchmark/
  2. protobuf/
  3. protoc_plugin/
  4. query_benchmark/
  5. tool/
  6. .gitignore
  7. .travis.yml
  8. analysis_options.yaml
  9. mono_repo.yaml
  10. README.md
README.md

Protobuf support for Dart

Protocol Buffers (protobuf) are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data.

This repository is home to packages related to protobuf for Dart. It contains: