protobuf_generator 1.0.9
protobuf_generator: ^1.0.9 copied to clipboard
A flutter generator package for generating code for protobuf, without installing protoc and protoc_plugin manually
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add protobuf_generatorThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
protobuf_generator: ^1.0.9Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:protobuf_generator/protobuf_generator.dart';