media property

MediaQueryData get media

Returns the nearest MediaQueryData instance for the current context.

Example usage:

Size size = context.media.size;

Implementation

MediaQueryData get media => MediaQuery.of(this);