2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2026-04-03 17:58:21 +00:00
This commit is contained in:
2019-12-02 03:29:30 +03:00
parent 5886cbbdac
commit 9c15b830dd
16 changed files with 298 additions and 30 deletions

View File

@@ -80,7 +80,7 @@ class DistributedResource extends IResource
/// <summary>
/// Resource is attached when all its properties are received.
/// </summary>
bool get IsAttached => _isAttached;
bool get isAttached => _isAttached;
// public DistributedResourceStack Stack
@@ -185,6 +185,19 @@ class DistributedResource extends IResource
return connection.sendInvokeByArrayArguments(_instanceId, index, args);
}
operator [](String index)
{
var pt = instance.template.getPropertyTemplateByName(index);
if (pt != null)
return get(pt.index);
}
operator []=(String index, value)
{
var pt = instance.template.getPropertyTemplateByName(index);
if (pt != null)
set(pt.index, value);
}
String _getMemberName(Symbol symbol)
{