data_classes_generator 2.0.3

  • Readme
  • Changelog
  • Installing
  • 62

See data_classes' readme for how to use this package.

2.0.2 - 2019-10-09 #

  • Support classes with fields that have types which were imported qualified (using import '...' as ...;).
  • Type-promote fields that take type arguments.

2.0.1 - 2019-09-20 #

  • Code generation now throws error if problems occur.

2.0.0 - 2019-09-20 #

  • Change @DataClass() annotation to @GenerateDataClassFor().
  • GeneratedClass.fromMutable() is now a normal constructor instead of a factory constructor.

1.1.1 - 2019-09-05 #

  • Fix newline issue in toString().

1.1.0 - 2019-09-05 #

  • Change @Nullable() annotation to @nullable.
  • Add toString() method to generated class.
  • Make sure there are no final fields in the mutable class.

1.0.3 - 2019-09-04 #

  • Relax those version constraints even further.

1.0.2 - 2019-09-04 #

  • Relax version constraints on analyzer and build_runner in the pubspec.yaml.

1.0.1 - 2019-09-04 #

  • Change blueprint prefix from $ to the more intuitive Mutable.

1.0.0 - 2019-09-04 #

  • Initial release: Supporting creation of data classes with fields, constructor, converter to and from the original mutable class, custom ==, and hashCode implementations as well as copyWith.

Use this package as a library

1. Depend on it

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


dependencies:
  data_classes_generator: ^2.0.3

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


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

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

  • Dart: 2.5.1
  • pana: 0.12.21

Platforms

Detected platforms: other

Primary library: package:data_classes_generator/data_classes_generator.dart with components: io, build, mirrors.

Health suggestions

Format lib/data_classes_generator.dart.

Run dartfmt to format lib/data_classes_generator.dart.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and data_classes_generator.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.0 <3.0.0
analyzer >=0.27.1 <1.0.0 0.38.5
build >=0.12.0 <2.0.0 1.2.0
data_classes ^2.0.3 2.0.3
source_gen ^0.9.0 0.9.4+5
Transitive dependencies
args 1.5.2
async 2.4.0
charcode 1.1.2
collection 1.14.12
convert 2.1.1
crypto 2.1.3
csslib 0.16.1
dart_style 1.3.1
front_end 0.1.27
glob 1.2.0
html 0.14.0+3
js 0.6.1+1
kernel 0.3.27
logging 0.11.3+2
meta 1.1.7
node_interop 1.0.3
node_io 1.0.1+2
package_config 1.1.0
path 1.6.4
pedantic 1.8.0+1
pub_semver 1.4.2
source_span 1.5.5
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
watcher 0.9.7+12
yaml 2.2.0
Dev dependencies
build_runner >=0.9.0 <1.6.7