code: private void toggle() {
          root.classList.toggle("completed", toggle.checked);
          repository.complete(item, toggle.checked);
          application.update();
      }
docs: ------------------------------------------------------ event handler