NPC class

NPC Near Procedure Call

Constructors

NPC(void send(Message message)?)
NPC Create instance. If send is null, you should extends NPC and override send(). send Send message function

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

cleanUpDeliveries(dynamic reason) Future<void>
cleanUpDeliveries Clean up all deliveries with special reason. reason error.
deliver(String method, {dynamic param, Duration? timeout, Cancelable? cancelable, Notify? onNotify}) Future
deliver Deliver method with reply. method Method name. param Method param. timeout Timeout. cancelable Cancel context. onNotify Called when notified.
emit(String method, {dynamic param}) → void
emit Emit method without reply. method Method name. param Method param.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
on(String method, Handle handle) → void
on Register method handle. method Method name. handle Handle.
receive(Message message) Future<void>
receive Receive message. message Message.
send(Message message) → void
send If _send is null, this function should be call to send message.
toString() String
A string representation of this object.
inherited

Operators

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