commit | 07eed6e8cc0535189112ae8373aa8f16f4a5c3ca | [log] [tgz] |
---|---|---|
author | Ömer Sinan Ağacan <omersa@google.com> | Thu Sep 25 10:32:41 2025 +0100 |
committer | GitHub <noreply@github.com> | Thu Sep 25 10:32:41 2025 +0100 |
tree | 0f7dc3e2ac01c8cedba23dd962e9f2528660aa9e | |
parent | 0447bd20dbf879d839fbd9e24c1731a71cfb39bb [diff] |
Generalize argument type of `PbList.from` from `List<T>` to `Iterable<T>` (#1054) This is more consistent with `List.from` and also more efficient as we can avoid redundant `List` allocations when we have an `Iterable` instead of a `List`. This commonly happens when we create a `PbList` from a chain of `map`, `where` etc. calls. Also update the the factory body to use `List.of` instead of `List.from` as we know the `Iterable`'s element type. (`List.from` takes `Iterable<dynamic>`, `List.of` takes `Iterable<T>`) cl/810421932
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 support for Dart.
Package | Description | Published Version |
---|---|---|
protobuf | Runtime library for protocol buffers support. | |
protoc_plugin | A protobuf protoc compiler plugin used to generate Dart code. | |
benchmarks | Benchmarks for various protobuf functions. |
For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.