component property
The current configuration.
A State
object's configuration is the corresponding StatefulComponent
instance. This property is initialized by the framework before calling
initState. If the parent updates this location in the tree to a new
component with the same runtimeType and Component.key
as the current
configuration, the framework will update this property to refer to the new
component and then call didUpdateComponent, passing the old configuration as
an argument.
Implementation
T get component => _component!;