createState method

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

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

Implementation

@override
State<Switch> createState() {
  return SwitchState();
}