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