protobuf_generator 1.0.4
protobuf_generator: ^1.0.4 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 Dart:
$ dart pub add protobuf_generatorWith Flutter:
$ flutter pub add protobuf_generatorThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
protobuf_generator: ^1.0.4Alternatively, your editor might support dart pub get or 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';