Fix Dart 2 related issue for strong types and default values

When a proto field is not set this porobuf lib is attempting to get a
default value. If it happens to be a collection like a List the type
would be List<dynamic> so when using Dart 2, at runtime you might
get a casting exception:
"type 'List<dynamic>' is not a subtype of type 'List<int>
2 files changed
tree: 538d39304577e6e8029ddb01febae7824fceed72
  1. benchmarks/
  2. lib/
  3. test/
  4. .gitignore
  5. .status
  6. .test_config
  7. .travis.yml
  8. analysis_options.yaml
  9. AUTHORS
  10. CHANGELOG.md
  11. codereview.settings
  12. CONTRIBUTING.md
  13. LICENSE
  14. pubspec.yaml
  15. README.md
README.md

Build Status pub package

Provides runtime support for a Dart implementation of protobufs.

Typically one do not need to import this library–only libraries generated by the protoc plugin import this library directly.

If your library or application uses generated protobuf libraries, add this library as a dependency.

References