MediaQueryData constructor

const MediaQueryData({Size size:, double devicePixelRatio: 1.0, double textScaleFactor: 1.0, Brightness platformBrightness: Brightness.light, EdgeInsets padding:, EdgeInsets viewInsets:, EdgeInsets systemGestureInsets:, EdgeInsets viewPadding:, double physicalDepth: double.maxFinite, bool alwaysUse24HourFormat: false bool accessibleNavigation: false bool invertColors: false bool highContrast: false bool disableAnimations: false bool boldText: false })

Creates data for a media query with explicit values.

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


const MediaQueryData({
  this.size =,
  this.devicePixelRatio = 1.0,
  this.textScaleFactor = 1.0,
  this.platformBrightness = Brightness.light,
  this.padding =,
  this.viewInsets =,
  this.systemGestureInsets =,
  this.viewPadding =,
  this.physicalDepth = double.maxFinite,
  this.alwaysUse24HourFormat = false,
  this.accessibleNavigation = false,
  this.invertColors = false,
  this.highContrast = false,
  this.disableAnimations = false,
  this.boldText = false,