widget property Null safety

InheritedWidget widget
override

The configuration for this element.

Implementation

@override
InheritedWidget get widget => super.widget as InheritedWidget;