I am also a bit confused about how the parsing of .proto files works.
So I am looking for a simple example of how to use this library in dart.
< /div>
Here are some instructions:
https://github.com/dart-lang/dart-protoc-plugin
< /div>
I’m considering using dart-protobuf instead of JSON in one of my projects. The problem is that the library doesn’t provide any examples of how to use it, and testing doesn’t really help.
I am also a bit confused about how the parsing of .proto files works.
So I am looking for a simple example of how to use this library in dart.
p>
I am not very familiar with dart-protobuf, but it looks like you have to use the protobuf compiler and the dart-protoc-plugin project to generate your Dart protobuf library from the proto definition.
Here are some instructions:
https://github.com/dart-lang/dart-protoc-plugin