toggleEditingMode method

void toggleEditingMode()

If it is editing,stop it. If it is not editing, start it

Implementation

void toggleEditingMode() {
  if (isEditing.value) {
    stopEditingMode();
  } else {
    startEditingMode();
  }
}