As far as I can tell, there are two ways to obtain an instance of MediaQueryData:
The popular way: calling MediaQuery.of(context) from inside a build method