statefulemitter

pubv1.0.2

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.

License MITpermissive3 versions2 deps5 weekly dl
28
/ 100
Health
use with caution

[email protected] low health (28/100) — consider alternatives

  • Low health score (28/100)
Health breakdown0 – 100
0/25
maintenance
0/20
popularity
25/25
security
3/15
maturity
0/15
community
Vulnerabilities
0
none known

Health History

Dependency Tree

License Audit

Dependencies (2)
API access

Get this data programmatically — free, no authentication.

curl https://depscope.dev/api/check/pub/statefulemitter

Last updated · 2021-06-10T23:01:12.634819Z