UseCase<T, Params> class
abstract
Base class for all use cases following Clean Architecture principles.
Use cases encapsulate business logic and orchestrate data flow between
the data layer and presentation layer. Each use case should have a single
responsibility and return results wrapped in Either<Failure, T> for
proper error handling.
Type parameters:
T- The type of data returned on successParams- The type of parameters required for execution
Constructors
- UseCase()
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}) → Future< T> - Executes the use case with optional parameters.
-
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