ActorResponse class abstract

Base class of actor replies.

Subclasses keep their own fields and constructors; they only have to provide success and error (usually as final fields). payload returns the reply itself, which is what dactor's ask<T>() hands back.

Implementers

Constructors

ActorResponse({ActorRef? sender, String? correlationId, ActorRef? replyTo, DateTime? timestamp, Map<String, dynamic>? metadata})

Properties

correlationId → String
finalinherited
error → String?
Why the request failed; null when success is true.
no setter
hashCode → int
The hash code for this object.
no setterinherited
metadata → Map<String, dynamic>
finalinherited
payload → dynamic
The reply itself, so ask<ConcreteResponse>() completes with it.
no setter
replyTo → ActorRef?
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sender → ActorRef?
finalinherited
success → bool
Whether the request this reply answers succeeded.
no setter
timestamp → DateTime
finalinherited

Methods

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