generic_enum_example 0.3.5
generic_enum_example: ^0.3.5 copied to clipboard

Dart native js
Flutter Android iOS Linux macOS web Windows

Demonstrates how to define and build extensions on Dart enums using the packages generic_enum and generic_enum_builder.

example/README.md

Generic Enum Example #

Build Status

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:

  1. Clone this repository.
  2. Add you own generic enum classes to the local folder generic_enum/generic_enum_example/lib.
  3. 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.

0
likes
100
pub points
0%
popularity

Publisher

simphotonics.com

Demonstrates how to define and build extensions on Dart enums using the packages generic_enum and generic_enum_builder.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

Dependencies

exception_templates, generic_enum

More

Packages that depend on generic_enum_example