toMap method

  1. @override
Map<K, int> toMap()
override

Snapshot as an IndexMap. If K extends Enum, call .toJson() on the result to serialise via EnumMapByName.

Implementation

@override
Map<K, int> toMap() => _BitStruct(keys, BitData.constant(bits) as BitStruct<K>);