1. @override
StatefulElement createElement()

Creates a StatefulElement to manage this widget's location in the tree.

It is uncommon for subclasses to override this method.

Source

@override
StatefulElement createElement() => new StatefulElement(this);