NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #1463 most downloaded on pub.dev
Error handler library for type-safe and easy work with errors on Dart and Flutter. Either is an alternative to Nullable value and Exceptions.
Last release 3 years ago
no release in 18 months
Ships fairly regularly
a new release about every 3 months
Most releases are documented
notes for 12 of 14 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
17 releases · first in 2020
One column per quarter.
*remove deprecated methods from Future[Either]*
remove deprecated methods from Future[Either]
Either is now sealed - this gives you support pattern matching.
You now have an alternative for the fold and either
before:
final either = ...;
final result = either.fold(
(left) => do something with left
(right) => do something with right
);
after:
final either = ...;
switch (either) {
case Left(value: final left):
do something with left
case Right(value: final right):
do something with right
}
Thanks to @dballance for creating the issue
Also, you can still use:
either.isLeft - check either is left
either.isRight- check either is right
Provide more async flexible type support for FutureEither's fold operation.
Provide more async flexible type support for FutureEither's fold operation.
Thanks to @lukasbalaz for creating the issue
add:
Either<ExpectedError, RightType>Either now overrides equality and hash.
Either now overrides equality and hash.
Thanks to @memishood for creating the issue
The following methods were not needed after FutureOr support, so they are marked Deprecated.
Updated to support FutureOr<T> instead of Future<T>:
Updated to support FutureOr<T> instead of T:
Mark deprecated (not delete):
The following methods were not needed after FutureOr support, so they are marked Deprecated.
Update: * Readme (just this)
Update:
(just this)
similiar methods for FutureEither extension
Added:
FutureEither<L, R> extensionremove the lint warning from Either.tryCatch
Fixed:
Nothing published for this version
Nothing published for this version
change the naming of the async methods of Either class
Added:
FutureEither<L, R> extensionFixed:
Either classChanges Either:
Added: * mapLeft Fixed: * documentation
Added:
Fixed:
const constructor for Left and Right
Added:
Changed:
Added: * asyncMap * asyncThen
Added:
Not convenient use with autocomplete
Fixed:
Added: * Unit test * Lazy condition * Flutter example
Added:
Added: * Unit test * creators by: * condition * exception Fixed: * pubspec * Readme
Added:
Fixed:
Added: * Base implementation * Unit test * Example with flutter
Added:
Your coding agent can read these notes before it upgrades. Set up the MCP server →