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

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 [...]

0
likes
110/ 140
pub points
2%
popularity

We analyzed this package 3 days ago, and awarded it 110 pub points (of a possible 140):

failed
Follow Dart file conventions
20 / 30trigger folding of the section

0/10 points: Provide a valid pubspec.yaml

The package description is too long.

Search engines display only the first part of the description. Try to keep the value of the description field in your package's pubspec.yaml file between 60 and 180 characters.

Homepage URL doesn't exist.

At the time of the analysis https://github.com/ModusLabsOrg/RoboDomo-mono was unreachable. Make sure that the website is reachable via HEAD requests.

Failed to verify repository URL.

Please provide a valid repository URL in pubspec.yaml, such that:

  • repository can be cloned,
  • a clone of the repository contains a pubspec.yaml, which:,
    • contains name: statefulemitter,
    • contains a version property, and,
    • does not contain a publish_to property.

Unable to access git repository: Failed to run remote show origin.

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: MIT.

failed
Provide documentation
10 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

9 out of 15 API elements (60.0 %) have documentation comments.

Some symbols that are missing documentation: StatefulEmitter, StatefulEmitter.StatefulEmitter, StatefulEmitter.StatefulEmitter.StatefulEmitter, StatefulEmitter.StatefulEmitter.setState, StatefulEmitter.StatefulEmitter.state.

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

OK
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android
  • ✓ iOS
  • ✓ Windows
  • ✓ Linux
  • ✓ macOS
  • ✓ Web
partial
Pass static analysis
40 / 50trigger folding of the section

40/50 points: code has no errors, warnings, lints, or formatting issues

lib/statefulemitter.dart doesn't match the Dart formatter.

To format your files run: dart format .

OK
Support up-to-date dependencies
20 / 20trigger folding of the section

10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
debug ^1.0.0 1.0.0 1.0.0
eventify ^1.0.0 1.0.1 1.0.1
Transitive dependencies
Package Constraint Compatible Latest
characters - 1.3.0 1.3.0
clock - 1.1.1 1.1.1
dart_console - 1.2.0 4.1.0
env_get - 1.0.0 1.0.0
ffi - 2.1.2 2.1.2
intl - 0.18.1 0.19.0
meta - 1.15.0 1.15.0
path - 1.9.0 1.9.0
win32 - 5.5.0 5.5.0

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

10/10 points: Package supports latest stable Dart and Flutter SDKs

Analyzed with Pana 0.22.3, Dart 3.3.4.

Check the analysis log for details.

0
likes
110
pub points
2%
popularity

Publisher

unverified uploader

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

Documentation

API reference

License

MIT (LICENSE)

Dependencies

debug, eventify

More

Packages that depend on statefulemitter