createState method

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

It creates a state object for the CrossButton widget.

Implementation

@override
State<StatefulWidget> createState() => CrossButtonState();