essential_dart 1.1.0 copy "essential_dart: ^1.1.0" to clipboard
essential_dart: ^1.1.0 copied to clipboard

Reusable building blocks, patterns, and services for Dart to improve efficiency and code quality.

1.2.0 #

  • Added run and runSync methods to Task for executing callbacks and returning Task objects.
  • Added watch method to Task for creating streams that emit Task states.

1.1.0 #

  • Added Task API for type-safe asynchronous operation state management
  • Added TaskState enum for explicit state representation
  • Added convenience transition methods:
    • toPending() - Transition to pending state
    • toRunning() - Transition to running state
    • toRefreshing() - Transition to refreshing state (allows null previousData)
    • toRetrying() - Transition to retrying state (allows null previousData)
    • toSuccess(T data) - Transition to success state with data
    • toFailure(Object error, {StackTrace? stackTrace}) - Transition to failure state
  • Added state getter to all Task classes
  • All transition methods automatically propagate label, tags, and initialData
  • Updated state checking getters to use TaskState enum
  • Comprehensive test suite with 132 tests covering all functionality

1.0.0+1 #

  • Updated package metadata and documentation.

1.0.0 #

  • Initial release.
  • Added Memoizer utility for caching computation results.
1
likes
150
points
108
downloads

Publisher

unverified uploader

Weekly Downloads

Reusable building blocks, patterns, and services for Dart to improve efficiency and code quality.

Repository (GitHub)
View/report issues

Topics

#utilities #patterns #architecture #efficiency

Documentation

API reference

License

MIT (license)

Dependencies

async

More

Packages that depend on essential_dart