WidgetsFormForm APIToggle APIForm Toggle methodsdestructor()destructor() removes a toggle instance and releases the occupied resources destructor(): void; Example form.getItem("toggle").destructor();