state_machine 3.0.1 copy "state_machine: ^3.0.1" to clipboard
state_machine: ^3.0.1 copied to clipboard

Finite state machine library. Easily define legal state transitions. Listen to state entrances, departures, and transitions.

39
likes
125/ 160
pub points
184k
downloads

We analyzed this package 2 days ago, and awarded it 125 pub points (of a possible 160):

Failed report section
Follow Dart file conventions
15 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Failed check 0/5 points: Provide a valid README.md

Links in `README.md` should be secure. 1 link is insecure.

README.md:4:1

  ╷
4 │ <a href="http://codecov.io/github/Workiva/state_machine?branch=master"><img src="https://codecov.io/gh/Workiva/state_machine/branch/master/graph/badge.svg" alt="codecov.io" /></a>
  │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵
copied to clipboard

Use https URLs instead.

Passed check 5/5 points: Provide a valid CHANGELOG.md

Failed check 0/10 points: Use an OSI-approved license

No license was recognized.

Consider using an OSI-approved license in the LICENSE file to make it more accessible to the community.

Failed report section
Provide documentation
10 / 20trigger folding of the section

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

84 out of 95 API elements (88.4 %) have documentation comments.

Some symbols that are missing documentation: state_machine.IllegalStateMachineMutation.IllegalStateMachineMutation.new, state_machine.IllegalStateMachineMutation.message, state_machine.IllegalStateTransition.IllegalStateTransition.new, state_machine.IllegalStateTransition.from, state_machine.IllegalStateTransition.message.

Failed check 0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

Passed report section
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

  • ✓ Web

Passed check 0/0 points: WASM compatibility

This package is compatible with runtime wasm, and will be rewarded additional points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

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

Found 3 issues. Showing the first 2:

INFO: Statements in an if should be enclosed in a block.

lib/src/state_machine.dart:262:7

262 │ ┌       throw IllegalStateMachineMutation(
263 │ └           'Cannot create new state ($name) once the machine has been started.');
    ╵
copied to clipboard

To reproduce make sure you are using the lints_core and run dart analyze lib/src/state_machine.dart

INFO: Statements in an if should be enclosed in a block.

lib/src/state_machine.dart:278:7

278 │ ┌       throw IllegalStateMachineMutation(
279 │ └           'Cannot create new state transition ($name) once the machine has been started.');
    ╵
copied to clipboard

To reproduce make sure you are using the lints_core and run dart analyze lib/src/state_machine.dart

Passed report section
Support up-to-date dependencies
40 / 40trigger folding of the section

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

Package Constraint Compatible Latest Notes
w_common ^3.0.0 3.2.0 3.2.0
Transitive dependencies
Package Constraint Compatible Latest Notes
clock - 1.1.2 1.1.2
intl - 0.18.1 0.20.2
js - 0.6.7 0.7.2 Discontinued
logging - 1.3.0 1.3.0
meta - 1.16.0 1.16.0
path - 1.9.1 1.9.1

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

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

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.20, Dart 3.7.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
Jul 4Aug 1Aug 29Sep 26Oct 24Nov 21Dec 19Jan 16Feb 13Mar 13010k20k30k40k50k60k70k80k90k>=1.0.0-0 <2.0.0>=2.0.0-0 <3.0.0>=3.0.0-0 <4.0.0
39
likes
125
points
184k
downloads

Publisher

verified publisherworkiva.com

Weekly Downloads

2024.09.19 - 2025.04.03

Finite state machine library. Easily define legal state transitions. Listen to state entrances, departures, and transitions.

Repository (GitHub)
Contributing

Documentation

API reference

License

unknown (license)

Dependencies

w_common

More

Packages that depend on state_machine