createState method
Creates the state for this widget.
Returns a _NyFormCheckboxState instance that manages the checkbox toggle
state and handles user interactions.
Implementation
@override
// ignore: no_logic_in_create_state
createState() => _NyFormCheckboxState(field);