createState method

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

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

Implementation

@override
State<Button> createState() {
  return ButtonState();
}