listenForAttributeChanges method

void listenForAttributeChanges()

Implementation

void listenForAttributeChanges() {
  if (!_listeningForAttrChanges) {
    for (final attr in attributes) {
      on<TinkAttributeEvent>(attrName(this, attr.id.name), (_, val) {
        setAttr(attr, val.value);
      });
    }
    _listeningForAttrChanges = true;
  }
}