mirror of https://github.com/grpc/grpc-dart.git
* Use `Map.of` instead of `Map.from` in grpc client. `Map.of` creates a new map with the same keys, values and *type* as the original map, when used without type arguments or context type, where `Map.from` creates a `Map<dynamic, dynamic>`. (This code failed on an attempt to make `Map.unmodifiable` be more strictly typed, like `Map.of` instead of `Map.from`, showing that an intermediate map had type `Map<dynamic, dynamic>` unnecessarily). Same for using `List.of` instead of `List.from`. The new code should be (microscopically) more efficient and type safe, and is forwards-compatible with a stronger type on `Map.unmodifiable`. (The code can be optimized more. For example `List.of(list1)..addAll(list2)` can be just `list1 + list2` or `[...list1, ...list2]`, both of which may know the total number of elements when doing the initial list allocation. This is a minimal change to allow the type changes for `.unmodifiable` to get past this very initial blocker in internal tests.) * Add changelog and minor version increment. And my save removes trailing spaces. |
||
|---|---|---|
| .github | ||
| example | ||
| interop | ||
| lib | ||
| test | ||
| tool | ||
| .gitignore | ||
| AUTHORS | ||
| CHANGELOG.md | ||
| CODE-OF-CONDUCT.md | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| MAINTAINERS.md | ||
| README.md | ||
| SECURITY.md | ||
| analysis_options.yaml | ||
| build.yaml | ||
| pubspec.yaml | ||
README.md
The Dart implementation of gRPC: A high performance, open source, general RPC framework that puts mobile and HTTP/2 first.
Learn more
- Quick Start - get an app running in minutes
- Examples
- API reference
For complete documentation, see Dart gRPC.
Supported platforms
Note: grpc-web is supported by
package:grpc/grpc_web.dart. UDS-unix domain socket is supported with sdk version >= 2.8.0.
Contributing
If you experience problems or have feature requests, open an issue.
Note that we have limited bandwidth to accept PRs, and that all PRs require signing the EasyCLA.