JUseCase<INPUT, OUTPUT> class abstract

Base interface for all asynchronous use cases.

Follows the Clean Architecture principle where each use case encapsulates a single piece of business logic.

  • OUTPUT - The return type of the use case (usually a model or entity).
  • INPUT - The type of parameters required to execute the use case.

Constructors

JUseCase()

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

addValidator(UseCaseInputValidator<INPUT> validator) → void
call(INPUT input) → Future<Either<Exception, OUTPUT>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(INPUT input) → Future<Either<Exception, OUTPUT>>
Executes the use case with the given input.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited