widget property Null safety

InheritedModel<T> widget
override

The configuration for this element.

Implementation

@override
InheritedModel<T> get widget => super.widget as InheritedModel<T>;