A Map with the compile-time check that every enum constant has an entry in it.
This repository contains two packages:
- enum_map (pub.dev): annotations and base classes. See its README for usage.
- enum_map_gen (pub.dev): the code generator.
enum_map 0.4.0-1.dev and 0.4.0-2.dev were an experimental rewrite with Dart macros.
Dart macros were canceled, so that rewrite is discontinued,
and the code generator is the supported approach.
The rewrite is kept in the macros branch.