either/use_case library
Classes
- Failure
-
Represents a failure in an operation, usually as the
Left
value of an Either. - NoParams
- A class that represents a lack of parameters.
- Unit
- Represents a void-like value in functional programming.
-
UseCase<
SuccessType, Params> - A contract for defining use cases (application business logic) in a clean architecture approach.
Constants
Typedefs
-
EitherFailure<
T> = Either< Failure, T> -
A type alias for an Either that has Failure as its
Left
type andT
as itsRight
type. -
FutureEither<
T> = Future< Either< Failure, T> > -
A type alias for a
Future
that completes with an EitherFailure. -
FutureEitherUnit
= FutureEither<
Unit> - A shorthand for a FutureEither that completes with a Unit result.
-
GMap
= Map<
String, dynamic> -
A type alias for a
Map<String, dynamic>
often used for generic JSON-like objects or data payloads.