NPC class abstract
NPC Near Procedure Call
Constructors
- NPC()
-
factory
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
-
connect(
void send(Message)) → void -
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. -
disconnect(
{dynamic reason}) → void -
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. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String method) → Handle? -
operator []=(
String method, Handle? value) → void