subject 1.1.1 copy "subject: ^1.1.1" to clipboard
subject: ^1.1.1 copied to clipboard

Automatically generates an observable interface for any class. Observer Pattern implementation for Dart, generalized using mixins and multiple alternative interfaces.

1.1.1 #

Fixed:

  • .onBefore() wasn't called before, because of asyncronous StreamController initialization

1.1.0 #

Added:

  • SubjectWith annotation to generate Subject classes with custom properties, such as subject and mixin names

1.0.6 #

Fixed:

  • Made subject:build and subject:watch commands use --delete-conflicting-outputs to avoid conflicts with build_runner

1.0.5 #

Fixed:

  • Inverted isGeneratorInstalled() check, when using subject:build and subject:watch commands

1.0.4 #

Fixed:

  • onError callback not returning the correct value, when using subject:build and subject:watch commands

1.0.3 #

Fixed:

  • Not nullable generic, when using subject:build and subject:watch commands

1.0.2 #

Changed:

  • Improved subject:build and subject:watch commands

Fixed:

  • Get dependencies after installing the subject_gen package, when using subject:build and subject:watch commands
  • Correct awaiting, when using subject:build and subject:watch commands

1.0.1 #

Fixed:

  • Documentation image URL and CHANGELOG.md

1.0.0 #

BREAKING CHANGES:

The package was split into two packages, subject and subject_gen, to keep dependencies to a minimum.

In the process of refactoring, a lot of the code was rewritten, the API was changed to be more consistent and fix some issues.

Added:

  • Split into subject_gen package to generate Subject classes, and keep dependencies to a minimum
  • Build commands, dart run subject:build and dart run subject:watch, to install and run the code generator

Changed:

  • Return type of .on and .onBefore is now SubjectSubscription instead of SubjectObserver

0.1.4 #

Added:

  • Package logo and screenshots

Fixed:

  • Observer.stream arguments were not being passed to the StreamObserver constructor

0.1.3 #

Changed:

  • Improved documentation

0.1.2 #

Changed:

  • Documentation to help with setting up the Code Generator
  • Minor documentation improvements

0.1.1 #

Fixed:

  • Builder name changed from observer:subject to subject:build

0.1.0 #

Added:

  • Annotation @dontObserve to exclude elements from being observed when using @subject

0.0.2 #

Changed:

  • Improved documentation

0.0.1 #

Initial release: Subject

3
likes
150
points
279
downloads
screenshot

Publisher

verified publisherdrafakiller.com

Weekly Downloads

Automatically generates an observable interface for any class. Observer Pattern implementation for Dart, generalized using mixins and multiple alternative interfaces.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

rxdart

More

Packages that depend on subject