in Flutter we access an inherited widget fields by using its static of
method:
Inhertied_widget.of(context).wanted_field
so, my question is, in a widget (stateless or statefull) when we use something like this:
final ScreenArguments args = ModalRoute.of(context).settings.arguments;
or:
MediaQueryData media = MediaQuery.of(context);
does this mean that the widget inherits from MediaQuery
or ModalRoute
thank you.