generic_enum_example 0.3.4 generic_enum_example: ^0.3.4 copied to clipboard
Demonstrates how to define and build extensions on Dart enums using the packages generic_enum and generic_enum_builder.
Generic Enum Example #
Introduction #
The package generic_enum_example
serves as a demonstrator on how to create generic enumeration classes by adding extensions that offer json-serialization and a mapping of enum instances to generic base values.
Starting Point #
As a starting point, users could follow these steps:
- Clone this repository.
- Add you own generic enum classes to the local folder
generic_enum/generic_enum_example/lib
. - In a terminal navigate to the local folder
generic_enum/generic_enum_example
and build the project by running the command:$ pub run build_runner build --delete-conflicting-outputs
Features and bugs #
Please file feature requests and bugs at the issue tracker.