ISetConst<T> constructor
To create an empty constant ISet: const ISetConst({})
.
To create a constant set with items: const ISetConst({1, 2, 3})
.
IMPORTANT: You must always use the const
keyword.
It's always wrong to use an ISetConst
which is not constant.
Implementation
@literal
const ISetConst(this._set,
// Note: The _set can't be optional. This doesn't work: [this._set = const {}]
// because when you do this _set will be Set<Never> which is bad.
[this.config = const ConfigSet()])
: super._gen();