internal_updatePropertyByIndex method

void internal_updatePropertyByIndex(
  1. int index,
  2. dynamic value
)

Implementation

void internal_updatePropertyByIndex(int index, dynamic value) {
  if (!_attached) {
    _queued_updates.add(KeyValuePair(index, value));
  } else {
    var pt = instance?.template.getPropertyTemplateByIndex(index);

    if (pt != null) {
      _properties[index] = value;
      instance?.emitModification(pt, value);
    }
  }
}