UseCase<Type, Params> class abstract

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

Use this for logic that doesn't require async/await.

Constructors

UseCase.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) → 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