After updating to the latest version protobuf-2.0.1, protoc_plugin-20.0.1 my generated code came with an error when generating code.
When executing this line:
protoc assessments.proto --dart_out=../../../../core/lib/generated/
My file "assessments.pb.dart" comes with the following error:

This started to happen after I updated to the latest version of the package.