dynamic sub()

Source

sub() {
  if (!isPublishOnly) {
    if (valueSub != null) {
      valueSub.cancel();
      valueSub = null;
    }

    valueSub = _link.requester.subscribe(valuePath, (ValueUpdate update) {
      doUpdate(update);
    });
  }
}