generic_enum_example 0.2.0 generic_enum_example: ^0.2.0 copied to clipboard
Demonstrates how to define and build generic enumeration classes using the packages generic_enum and generic_enum_builder.
Generic Enum Example #
Introduction #
GenericEnum
is a base class for creating generic classes with a fixed set of static constant instances.
These classes appear to the user like a Dart enum would.
For example, generic enums can be used in switch statements,
to initialize variables, or as default parameters in functions and constructors.
This package demonstrates how to define and build generic enumeration classes.
Starting Point #
As a starting point users could clone this repository, add
their own generic enum classes to the folder lib
and build the library. Build instructions
are provided below.
Usage #
A step-by-step guide on how to build generic enumeration classes is provided here.
Features and bugs #
Please file feature requests and bugs at the issue tracker.