State pointer for check widget

This code snippet demonstrates how to create and use state pointer for elementary check widget.