NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #5235 most downloaded on pub.dev
Kotlin-inspired scope functions implemented in Dart with the goal of executing a block of code within the context of an object
Last release 27 days ago
11 Sep 2026
Ships fairly regularly
a new release about every 3 months
Nearly every release is documented
notes for 27 of 27 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
27 releases · first in 2023
letWithElse's orElse is now a function (R Function()) instead of a value, so it is only evaluated when the receiver is null. Migration: orElse: x → or
Breaking changes
letWithElse's orElse is now a function (R Function()) instead of a value, so it is only evaluated when the receiver is null. Migration: orElse: x → orElse: () => x.takeIf / takeUnless parameter is renamed from predicament to predicate (only affects callers passing it by name).>=3.13.3.Bug fixes
letWithElse no longer falls back to orElse when the receiver is non-null but block legitimately returns null (nullable R).Other changes
wasm:prefer-inline pragma so dart2wasm gets the same inline hint as the VM and dart2js; use dart2js:prefer-inline instead of the legacy tryInline alias.also does not await an async block, and that let does not short-circuit on null (use value?.let(...) or letWithElse).orElse.analysis_options.yaml.One column per quarter.
Update dependencies and Dart SDK constraints.
Update version to 1.0.7, bump SDK constraints to >=3.11.0, and update dev dependencies for lints and test packages.
Replace the repository URL from GitHub to GitLab.
- Bump SDK version constraints.
- Bump SDK version constraints. - Bump dependencies to latest.
- Bump SDK version constraints. - Bump dependencies to latest.
- Bump SDK version constraint. - Bump dependencies to latest. - Change repository URL.
- Bump SDK version constraint. - Bump dependencies to latest. - Change repository URL.
- Bump SDK version constraint. - Bump dependencies to latest.
Add @pragma annotations to try and inline functions.
@pragma annotations to try and inline functions.- Bump SDK version constraint. - Bump dependencies to latest. - Update documentation.
Regenerate analysis_options.yaml file.
analysis_options.yaml file.Regenerate analysis_options.yaml file.
analysis_options.yaml file.- Bump SDK version constraint. - Bump dependencies to latest.
Create a new extension method withDefault.
withDefault.Create a new extension method letWithElse that can be used on nullable types.
letWithElse that can be used on nullable types.- Bump SDK version constraint. - Bump dependencies to latest. - Add topics to pubspec.yaml.
pubspec.yaml.Bump Dart SDK version constraint.
Update analysis_options.yaml file.
analysis_options.yaml file.Dart 3 ready: new analysis_options.yaml file + bumped Dart SDK constraints.
analysis_options.yaml file + bumped Dart SDK constraints.Regenerate analysis_options.yaml file.
analysis_options.yaml file.Bump Dart SDK version constraint.
Bump Dart SDK version constraint.
Bump Dart SDK version constraint.
Update pubspec.yaml with a more detailed description.
pubspec.yaml with a more detailed description.- Initial version.
Your coding agent can read these notes before it upgrades. Set up the MCP server →