IMapOfSetsConst<K, V> constructor
- @literal
- IMap<
K, ISet< _mapOfSets, [V> > - ConfigMapOfSets config = const ConfigMapOfSets()
To create an empty constant IMapOfSets: const IMapOfSetsConst(IMapConst({}))
.
To create an empty constant IMapOfSets with a specific configuration:
const IMapOfSetsConst(IMapConst({}), ConfigMapOfSets())
.
To create a constant map with entries:
const IMapOfSetsConst(IMapConst({'a': ISetConst({1, 2})}))
.
IMPORTANT: You must always use the const
keyword.
It's ALWAYS wrong to use an IMapConst
which is not constant.
Implementation
@literal
const IMapOfSetsConst(IMap<K, ISet<V>> _mapOfSets,
[ConfigMapOfSets config = const ConfigMapOfSets()])
: super._(_mapOfSets, config);