simple_value_object_generator 1.0.3 copy "simple_value_object_generator: ^1.0.3" to clipboard
simple_value_object_generator: ^1.0.3 copied to clipboard

A Dart code generator that simplifies the creation of Value Objects using Dart's extension type.

CHANGELOG #

1.0.3 #

Added empty field when the type is String and added allowEmpty is true or minLength is 0.

1.0.2 #

Updated dependencies.

1.0.1 #

Modified the generator to always create an alias with <right-hand side alias name>.

Before:

@ValueObject<int>
typedef Id = $Id; // Generated alias name is _$Id (=compile error)

After:

@ValueObject<int>
typedef Id = $Id; // Generated alias name is $Id

1.0.0 #

  • Initial version.
1
likes
140
points
17
downloads

Documentation

API reference

Publisher

verified publisherr-koubou.net

Weekly Downloads

A Dart code generator that simplifies the creation of Value Objects using Dart's extension type.

License

MIT (license)

Dependencies

analyzer, build, simple_value_object_annotation, source_gen

More

Packages that depend on simple_value_object_generator