diff --git a/protobuf/lib/src/protobuf/field_set.dart b/protobuf/lib/src/protobuf/field_set.dart index b77ecb891..41c845a55 100644 --- a/protobuf/lib/src/protobuf/field_set.dart +++ b/protobuf/lib/src/protobuf/field_set.dart @@ -321,7 +321,7 @@ class _FieldSet { final newValue = fi._createMapField(); _setNonExtensionFieldUnchecked(meta, fi, newValue); - return newValue as PbMap; + return newValue; } /// Sets a non-extended field and fires events.