How to use dart-protobuf
dart, protocol-buffers
Solution
I'm not too 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 a proto definition.
There are some instructions here: https://github.com/dart-lang/dart-protoc-plugin
Problem
I'm considering using dart-protobuf instead of JSON in one of my projects. The problem is that the library does not provide any example of how to use it, and the tests don't really help either. I'm also a bit confused on how the parsing of `.proto` files would work. So I'm looking for a simple example of how to use this library in dart.