Switch.setActive

void setActive(bool isActive)

Changes the state of self to the desired one.

Parameters

isActivetrue if self should be active, and false otherwise