google / streamy-dart

Apache License 2.0
60 stars 23 forks source link

Streamy constructs new key/unmarshallar map for every instance being unmarshalled. #282

Open irfantusneem opened 9 years ago

irfantusneem commented 9 years ago

Streamy constructs new key/unmarshallar map for every instance being unmarshalled.

Every call to the getter below constructs a new object

Map<String, dynamic> get _entitiesXyzCollaborator => { r'entityRef': unmarshalEntityRef, r'XyzRef': unmarshalXyzRef, };

These should just be final static UnmodifiableMapView<K, V> _entitiesXyzCollaborator = {}

or it can be a regular map since it is private in any case.