enum_class_generator 2.0.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 30

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.

Use this package as a library

1. Depend on it

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


dependencies:
  enum_class_generator: ^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 flutter 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_generator 2.0.0 Download enum_class_generator 2.0.0 archive
1.1.2 Nov 14, 2016 Go to the documentation of enum_class_generator 1.1.2 Download enum_class_generator 1.1.2 archive
1.1.1 Oct 19, 2016 Go to the documentation of enum_class_generator 1.1.1 Download enum_class_generator 1.1.1 archive
1.1.0 Sep 21, 2016 Go to the documentation of enum_class_generator 1.1.0 Download enum_class_generator 1.1.0 archive
1.0.0 Jul 11, 2016 Go to the documentation of enum_class_generator 1.0.0 Download enum_class_generator 1.0.0 archive
0.2.2 Jun 7, 2016 Go to the documentation of enum_class_generator 0.2.2 Download enum_class_generator 0.2.2 archive
0.2.1 Jun 6, 2016 Go to the documentation of enum_class_generator 0.2.1 Download enum_class_generator 0.2.1 archive
0.2.0 May 30, 2016 Go to the documentation of enum_class_generator 0.2.0 Download enum_class_generator 0.2.0 archive
0.1.0 May 25, 2016 Go to the documentation of enum_class_generator 0.1.0 Download enum_class_generator 0.1.0 archive
0.0.6 Oct 23, 2015 Go to the documentation of enum_class_generator 0.0.6 Download enum_class_generator 0.0.6 archive

All 15 versions...

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

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

  • Dart: 2.0.0
  • pana: 0.12.4

Platforms

Detected platforms: Flutter, web, other

No libraries.

Maintenance issues and suggestions

Add SDK constraint in pubspec.yaml. (-5 points)

For information about setting SDK constraint, please see https://www.dartlang.org/tools/pub/pubspec#sdk-constraints.

Package is getting outdated. (-88.22 points)

The package was released 98 weeks ago.

Maintain an example. (-10 points)

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_generator.dart.