DistributedResource class

Inheritance

Constructors

DistributedResource()

Properties

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

Methods

destroy() → void
IDestructible interface.
override
emitArgs(String event, List arguments) bool
inherited
emitProperty(PropertyModificationInfo event) → void
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_invoke(int index, Map<UInt8, dynamic> args) 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, Function? callback) → void
inherited
on(String event, Function callback) → void
inherited
register(String event) → void
inherited
set(int index, dynamic value) AsyncReply
Set property value.
setProperty(String name, dynamic value) → dynamic
inherited
setSync(int index, dynamic value) → dynamic
suspend() → void
toString() String
A string representation of this object.
override
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