AsyncUseCase<Type, Params> class abstract

A contract for asynchronous use cases that return a Future wrapping an Either containing either a Failure or a Type.

Type is the type of data to return on success. Params is the type of input required for execution.

Constructors

AsyncUseCase.new()

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<Either<Failure, Type>>
Executes the use case with the provided params.
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