A contract for defining use cases (application business logic) in a clean architecture approach.
SuccessType is the type returned on success, and Params is the type of the input parameters.
Use cases should return a FutureEither to indicate both asynchronous and fallible behavior.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call(
Params params) → FutureEither< SuccessType> -
Executes the use case with the given
paramsand returns a FutureEither result. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited