generic_enum_builder library

Library providing the builders mapBuilder and jsonBuilder. These functions are used to build generic enumeration classes extending GenericEnum<T>.

Functions

identifierBuilder(BuilderOptions options) Builder
Builder calling the method generate on a IdentifierGenerator instance. IdentifierGenerator processes classes annotated with @GenerateIdentifier. It generates the function _$<ClassName>Identifier().
jsonBuilder(BuilderOptions options) Builder
Builder calling the method generate on a JsonGenerator instance. JsonGenerator processes classes annotated with @GenerateFromJson. It generates the function _$<ClassName>FromJson.
mapBuilder(BuilderOptions options) Builder
Builder calling the method generate on a MapGenerator instance. MapGenerator processes classes annotated with @GenerateValueMap. It generates an unmodifiable Map instance mapping each GenericEnum value to the static const GenericEnum instance with that value.