func_types library
Support for doing something awesome.
More dartdocs go here.
Classes
-
Either<
LEFT, RIGHT> -
Represents a union type of
LEFT
andRIGHT
. Holds either aLEFT
value or aRIGHT
value, but never both. - ExTrace
- Represents a caught Exception with StackTrace.
-
Option<
MAYBE> - Represents a nullable value. Ensures safe handling of nullable values by enforcing the explicit handling of both states of the value. Can have the state of something (some) or nothing (none).
-
Result<
OK, ERR> - Represents an operation which might fail. A safer way to handle operations which might produce a runtime exception. It ensures safety by enforcing the explicit handling of both cases of the operation.
Extensions
-
EitherIterable
on Iterable<
Either< LEFT, RIGHT> > -
OptionIterable
on Iterable<
Option< MAYBE> > -
ResultIterable
on Iterable<
Result< OK, ERR> > - WrapEither on T
- WrapOption on MAYBE?
- WrapResult on T