What is the Dart “Expando” feature about, what does it do?

后端 未结 3 965
灰色年华
灰色年华 2020-12-30 00:23

Have been seeing the term \"Expando\" used recently with Dart. Sounds interesting. The API did not provide much of a clue to me.

An example or two could be most he

3条回答
  •  独厮守ぢ
    2020-12-30 00:56

    Just to clarify the difference between expando and maps: as reported in the groups, expando has weak references.
    This means that a key can be garbage collected even if it's still present in the expando (as long as there are no other references to it).

    For all other intents and purposes it's a map.

提交回复
热议问题