MediaQueryData constructor

const MediaQueryData({Size size: Size.zero, double devicePixelRatio: 1.0, double textScaleFactor: 1.0, Brightness platformBrightness: Brightness.light, EdgeInsets padding: EdgeInsets.zero, EdgeInsets viewInsets: EdgeInsets.zero, EdgeInsets systemGestureInsets: EdgeInsets.zero, EdgeInsets viewPadding: EdgeInsets.zero, 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.

Implementation

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