media property

BuildMedia get media

It is a simplification of the MediaQuery.of(context) statement.

Do that:

return BuildMedia(context)

Implementation

BuildMedia get media => BuildMedia(this);