JSyncUseCase<INPUT, OUTPUT> class
abstract
Base interface for synchronous use cases.
Allows execution of business logic that completes immediately without asynchronous operations.
INPUT- The type of parameters required to execute the use case.OUTPUT- The return type of the use case.
Constructors
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) → Either< Exception, OUTPUT> -
Executes the use case synchronously with the given
input. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
INPUT input) → Either< Exception, OUTPUT> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited