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