CqrsMiddleware class abstract

Abstract class for CQRS result handlers. Can be used to specify certain behaviors that will be triggered for given errors i.e. showing snackbar on network error or logging out on authetication error etc.

Constructors

CqrsMiddleware()
Creates CqrsMiddleware class.
const

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

handleCommandResult(CommandResult result) Future<CommandResult>
Handle and return command result. If no modification of given result is needed then return the same result that was passed to the method.
handleOperationResult<T>(OperationResult<T> result) Future<OperationResult<T>>
Handle and return operation result. If no modification of given result is needed then return the same result that was passed to the method.
handleQueryResult<T>(QueryResult<T> result) Future<QueryResult<T>>
Handle and return query result. If no modification of given result is needed then return the same result that was passed to the method.
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