Skip to content
This repository has been archived by the owner on Dec 14, 2017. It is now read-only.

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

Open
irfantusneem opened this issue Mar 6, 2015 · 0 comments

Comments

@irfantusneem
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant