DistributedResource class

Inheritance

Constructors

DistributedResource()

Properties

attached bool
Resource is ready when all its properties are attached.
no setter
connection DistributedConnection?
Connection responsible for the distributed resource.
no setter
hashCode int
The hash code for this object.
no setterinherited
id int?
Instance Id given by the other end.
no setter
instance Instance?
getter/setter pairinherited
Resource link
no setter
properyModified Stream
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suspended bool
no setter
template TemplateDescriber
no setterinherited

Methods

destroy() → void
IDestructible interface.
override
emitArgs(String event, List arguments) → dynamic
inherited
emitProperty(String name) → dynamic
inherited
get(int index) → dynamic
Get a property value.
getProperty(String name) → dynamic
inherited
internal_attach(List<PropertyValue> properties) bool
internal_emitEventByIndex(int index, dynamic args) → void
internal_init(DistributedConnection connection, int instanceId, int age, String link) → void
Create a new distributed resource.
internal_invokeByArrayArguments(int index, List args) AsyncReply
internal_invokeByNamedArguments(int index, Structure namedArgs) AsyncReply
internal_serialize() List<PropertyValue>
Export all properties with ResourceProperty attributed as bytes array.
internal_updatePropertyByIndex(int index, dynamic value) → void
invoke(String name, List arguments) → dynamic
inherited
listen(dynamic event) AsyncReply
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
override
off(String event, dynamic callback) → dynamic
inherited
on(String event, Function callback) → dynamic
inherited
register(String event) → dynamic
inherited
set(int index, dynamic value) AsyncReply
Set property value.
setProperty(String name, dynamic value) → dynamic
inherited
suspend() → void
toString() String
A string representation of this object.
inherited
trigger(ResourceTrigger trigger) AsyncReply<bool>
override
unlisten(dynamic event) AsyncReply

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String index) → dynamic
operator []=(String index, dynamic value) → void