state property

bool? state
getter/setter pair

true if the switch is on, false if it is off, or null if the current state is unknown.

Implementation

bool? state;