IMapOfSetsConst<K, V> constructor

  1. @literal
const IMapOfSetsConst<K, V>(
  1. IMap<K, ISet<V>> _mapOfSets, [
  2. 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);