statefulemitter 1.0.0 copy "statefulemitter: ^1.0.0" to clipboard
statefulemitter: ^1.0.0 copied to clipboard

outdated

Extended EventEmitter that fires "statechange" event when state member is changed. Child classes that inherit from EventEmitter can use the standard event emit, subscribe, unsubscribe, etc., methods o [...]

-/ -
pub points
8
downloads

This package version is not analyzed. Check the latest stable version for its analysis.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
0
likes
0
points
8
downloads

Publisher

unverified uploader

Weekly Downloads

Extended EventEmitter that fires "statechange" event when state member is changed. Child classes that inherit from EventEmitter can use the standard event emit, subscribe, unsubscribe, etc., methods of EventEmitter. This class adds a private _state member and a setState(object) and getState() method as well as getter/setter for the getState/SetState methods. Whenever the state is changed, a 'statechange' event will be emitted with the previous state as argument. This allows the handler to compare old state with new state, if desired. This package was developed as part of a port of Modus Create's IoT platform, RoboDomo from JavaScript to Dart and Flutter. The original can be found at https://github.com/RoboDomo.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

debug, eventify

More

Packages that depend on statefulemitter