BaseUseCase<P, L, R> class abstract base mixin

An abstract class for the core functionalities of a use case.

A use case represents a specific action within a system.

Implementers

Constructors

BaseUseCase()

Properties

hashCode int
The hash code for this object.
no setterinherited
leftParams → P?
The last params used to execute the use case when it failed.
no setter
leftValue → L?
The last error value by the use case.
no setter
params Either<P, P>?
The last params used to execute the use case.
no setter
rightParams → P?
The last params used to execute the use case when it succeeded.
no setter
rightValue → R?
The last success value by the use case.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value Either<L, R>?
The last L or R value produced by the use case which can either reference the leftValue or the rightValue.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCall(P params) FutureOr<Either<L, R>>
The use case action callback.
reset() → void
Clears all the data.
setParamsAndValue(P params, Either<L, R> value) → void
Sets the params and value of the use case.
toString() String
A string representation of this object.
inherited

Operators

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