Check out example codes for "'protoc-gen-dart' is not recognized as an internal or external command, operable program or batch file. --dart_out: protoc-gen-dart:". It will help you in understanding the concepts better.

Code Example 1

$ protoc -Iproto proto/[file].proto --plugin=protoc-gen-dart=c:\Users\[youruser]\AppData\Roaming\Pub\Cache\bin\protoc-gen-dart.bat --dart_out=grpc:lib/generated

Learn ReactJs, React Native from akashmittal.com