createElement method

  1. @override
StatelessElement createElement()
override

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

It is uncommon for subclasses to override this method.

Implementation

@override
StatelessElement createElement() => restorationId != null
    ? _RestorableStaticWidgetElement(this, restorationId!)
    : _StaticWidgetElement(this);