enum_class 2.0.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 42

Enum Classes for Dart

Enum Classes are now available from built_value.

Changelog

2.0.0

  • Deleted. Equivalent functionality is now available from built_value.

1.1.2

  • Regenerate .g.dart files for built_value 0.1.6.

1.1.1

  • Allow quiver 0.23.

1.1.0

  • Upgrade analyzer, build and source_gen dependencies.

1.0.0

  • API now stable.
  • Refactor generator to split into logical classes.
  • Fix "watch mode": check for duplicate identifiers per library.

0.2.2

  • Improve error output on failure to generate.

0.2.1

  • Add values and valueOf to generated mixin for use in Angular templates.
  • Make duplicate generated name detection more robust.
  • Check value and valueOf using analyzed nodes instead of raw source. Makes generation robust to newlines in these declarations.

0.2.0

  • Add mixin generation for use with Angular templates.

0.1.0

  • Upgrade to source_gen 0.5.0.
  • Breaking change; see example for required changes to build.dart.

0.0.6

  • Check for missing import statement.
  • Fix constraints for source_gen.

0.0.5

  • Fix generation across multiple files, allow reuse of generated identifiers.

0.0.4

  • Fail on dynamic fields.
  • Export BuiltSet.
  • Allow part statements with double quote.

0.0.3

  • Support multiple enums in one file by allowing arbitrary generated identifiers.

0.0.2

  • Add accurate dependencies on SDK, analyzer.

0.0.1

  • Generator, tests and example.

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  enum_class: "^2.0.0"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

Version Uploaded Documentation Archive
2.0.0 Nov 22, 2016 Go to the documentation of enum_class 2.0.0 Download enum_class 2.0.0 archive
1.1.2 Nov 14, 2016 Go to the documentation of enum_class 1.1.2 Download enum_class 1.1.2 archive
1.1.1 Oct 19, 2016 Go to the documentation of enum_class 1.1.1 Download enum_class 1.1.1 archive
1.1.0 Sep 21, 2016 Go to the documentation of enum_class 1.1.0 Download enum_class 1.1.0 archive
1.0.0 Jul 11, 2016 Go to the documentation of enum_class 1.0.0 Download enum_class 1.0.0 archive
0.2.2 Jun 7, 2016 Go to the documentation of enum_class 0.2.2 Download enum_class 0.2.2 archive
0.2.1 Jun 6, 2016 Go to the documentation of enum_class 0.2.1 Download enum_class 0.2.1 archive
0.2.0 May 30, 2016 Go to the documentation of enum_class 0.2.0 Download enum_class 0.2.0 archive
0.1.0 May 25, 2016 Go to the documentation of enum_class 0.1.0 Download enum_class 0.1.0 archive
0.0.6 Oct 23, 2015 Go to the documentation of enum_class 0.0.6 Download enum_class 0.0.6 archive

All 15 versions...

Analysis

We analyzed this package on Apr 9, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.46.0
  • pana: 0.10.6

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
100 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
62 / 100
Overall score:
Weighted score of the above. [more]
42
Learn more about scoring.

Platforms

Detected platforms: Flutter, web, other

No libraries.

Suggestions

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use enum_class.dart.