MediaQueryData constructor

const MediaQueryData({Size size: Size.zero, double devicePixelRatio: 1.0, double textScaleFactor: 1.0, EdgeInsets padding: EdgeInsets.zero, EdgeInsets viewInsets: EdgeInsets.zero, bool alwaysUse24HourFormat: false })

Creates data for a media query with explicit values.

Consider using MediaQueryData.fromWindow to create data based on a Window.

Implementation

const MediaQueryData({
  this.size: Size.zero,
  this.devicePixelRatio: 1.0,
  this.textScaleFactor: 1.0,
  this.padding: EdgeInsets.zero,
  this.viewInsets: EdgeInsets.zero,
  this.alwaysUse24HourFormat: false,
});