createState method

  1. @override
State<Slider> createState()
override

Creates the mutable state for this widget at a given location in the tree.

Implementation

@override
State<Slider> createState() {
  final state = SliderState();
  _state = state;
  return state;
}