Generic Enum Builder

Build Status

Introduction

The package generic_enum_builder contains a builder and source code generating classes based on source_gen and analyzer.

The provided builder can be configured to generate custom extensions containing value-mapping and json-serialization methods for each annotated Dart enum.

Usage

To use this library include generic_enum as dependency in your pubspec.yaml file.

Include generic_enum_builder and build_runner as dev_dependencies.

A step-by-step guide on how to configure the builder is provided at https://pub.dev/packages/generic_enum#usage.

Examples

The package generic_enum_example provides a complete example on how to define and build generic enumeration classes. As a starting point users could clone this repository, add their own annotated enumerations to the folder lib and build the library.

Features and bugs

Please file feature requests and bugs at the issue tracker.

Libraries

generic_enum_builder
Library providing the builder extensionBuilder.