def METHOD_NAME(self) -> Self:
    """Toggle the switch value.
    As a result of the value changing, a `Switch.Changed` message will
    be posted.
    Returns:
        The `Switch` instance.
    """
    self.value = not self.value
    return self