commit | d30a4c8b4f4ead77653e1523b44aa1325dc8d0d0 | [log] [tgz] |
---|---|---|
author | Martin Kustermann <kustermann@google.com> | Wed Dec 16 10:03:56 2020 +0100 |
committer | GitHub <noreply@github.com> | Wed Dec 16 10:03:56 2020 +0100 |
tree | 8788328d1950012b6bf382646a86e2f49fadda0d | |
parent | 75389dd16f46ca2a4694f4d015240514c7e34077 [diff] |
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()`.
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: