decorator_gen 0.5.0 copy "decorator_gen: ^0.5.0" to clipboard
decorator_gen: ^0.5.0 copied to clipboard

Automatically generates code for the decorator pattern in Dart by annotating classes.

0.5.0 #

  • Require analyzer: ^8.0.0
  • Require build: ^4.0.0
  • Require source_gen: ^4.0.0

0.4.0 #

  • Object methods are now forwarded even if they are not overridden
    • still respects the global or local settings for overriding
  • Make decorator == method transparent by forwarding to the components == if possible
  • Fix value equality issue where 2 generated decorators with the same instance could be considered not equal

0.3.0 #

  • Added annotation-level forwarding support through @Decorator() constructor parameters

0.2.0+1 #

  • Fix README pub package shield to point to decorator_annotation instead of decorator_gen

0.2.0 #

  • Require analyzer: ^7.4.0
  • Require build: ^3.0.0
  • Require source_gen: ^3.0.0
  • Fix deprecation warnings

0.1.1 #

  • Fix unary- operator generation for @Decorator() classes
  • increase test coverage

0.1.0 #

  • Generate decorator classes using the @Decorator() annotation
  • Support for generics, mixins, operators, parameters, records, properties
  • forward_object_method options to control generation of toString, ==, hashCode, runtimeType, and noSuchMethod
0
likes
150
points
161
downloads

Publisher

unverified uploader

Weekly Downloads

Automatically generates code for the decorator pattern in Dart by annotating classes.

Repository (GitHub)
View/report issues

Topics

#build-runner #codegen #decorator #design-pattern

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, build, decorator_annotation, source_gen

More

Packages that depend on decorator_gen