The well-known types from the Google Protobuf compiler.
This is similar to protobuf_google, but includes a builder to generate the files, and uses protobuf version 3.
See https://protobuf.dev/reference/protobuf/google.protobuf/ for more information.
Includes a library to import all types at once, for use in your day-to-day development.
It also exports each type separately, useful in the compiled Protobuf files.
You will likely only care about the .pb.dart
files.
protoc-gen-dart
generates separate .pbenum
and .pbjson
files for the sake of Dartium, and it's unclear if these should ever be imported manually.
See the protobuf.dart
commit.
dart pub add protobuf_wellknown
import "package:protobuf_wellknown/protobuf_wellknown.dart";
See https://pub.dev/packages/protobuf_wellknown.
- Includes code from https://github.com/pikaju/dart-protoc-builder.