Instance class
Methods
-
applicable(Session session, ActionType action, MemberTemplate? member, [dynamic inquirer = null])
→ Ruling
-
Check for permission.
-
children_OnAdd(Instance parent, IResource value)
→ void
-
-
children_OnRemoved(Instance parent, IResource value)
→ void
-
-
deserialize(List<PropertyValue> properties)
→ bool
-
Import properties from bytes array.
-
emitArgs(String event, List arguments)
→ bool
-
inherited
-
emitModification(PropertyTemplate pt, dynamic value)
→ void
-
-
emitProperty(PropertyModificationInfo event)
→ void
-
inherited
-
emitResourceEvent(dynamic issuer, bool receivers(Session)?, EventTemplate eventTemplate, dynamic value)
→ dynamic
-
-
getAge(int index)
→ int
-
Get the age of a given property index.
-
getAttributes([List<String>? attributes = null])
→ Map<String, dynamic>
-
-
getModificationDate(int index)
→ DateTime
-
Get modification date of a specific property.
-
getPropertyValue(String name, ValueObject valueObject)
→ bool
-
Get the value of a given property by name.
-
isStorable()
→ bool
-
If True, the instance can be stored to disk.
-
loadProperty(String name, int age, DateTime modificationDate, dynamic value)
→ bool
-
Load property value (used by stores)
-
modified(String propertyName)
→ dynamic
-
Notify listeners that a property was modified.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
off(String event, Function? callback)
→ void
-
inherited
-
on(String event, Function callback)
→ void
-
inherited
-
parents_OnAdd(Instance parent, IResource value)
→ void
-
-
parents_OnRemoved(Instance parent, IResource value)
→ void
-
-
register(String event)
→ void
-
inherited
-
removeAttributes([List<String>? attributes = null])
→ bool
-
-
resource_OnDestroy(dynamic sender)
→ void
-
-
serialize()
→ List<PropertyValue>
-
Export all properties with ResourceProperty attributed as bytes array.
-
setAge(int index, int value)
→ void
-
Set the age of a property.
-
setAttributes(Map<String, dynamic> attributes, [bool clearAttributes = false])
→ bool
-
-
setModificationDate(int index, DateTime value)
→ void
-
Set the modification date of a property.
-
toString()
→ String
-
A string representation of this object.
override