ResponsiveMasterConfig constructor

const ResponsiveMasterConfig({
  1. double mobileBreakpoint = 650,
  2. double tabletBreakpoint = 1100,
  3. double desktopBreakpoint = 1920,
  4. bool includeSafeArea = true,
  5. bool respectTextScaleFactor = true,
  6. bool debugMode = false,
  7. bool enableCaching = true,
  8. double? designWidth,
  9. double? designHeight,
  10. bool allowFontScalingBeyondLimit = false,
  11. double maxTextScaleFactor = 2.0,
  12. double minTextScaleFactor = 0.5,
})

Implementation

const ResponsiveMasterConfig({
  this.mobileBreakpoint = 650,
  this.tabletBreakpoint = 1100,
  this.desktopBreakpoint = 1920,
  this.includeSafeArea = true,
  this.respectTextScaleFactor = true,
  this.debugMode = false,
  this.enableCaching = true,
  this.designWidth,
  this.designHeight,
  this.allowFontScalingBeyondLimit = false,
  this.maxTextScaleFactor = 2.0,
  this.minTextScaleFactor = 0.5,
})  : assert(mobileBreakpoint < tabletBreakpoint,
          'mobileBreakpoint must be less than tabletBreakpoint'),
      assert(tabletBreakpoint < desktopBreakpoint,
          'tabletBreakpoint must be less than desktopBreakpoint'),
      assert(maxTextScaleFactor > minTextScaleFactor,
          'maxTextScaleFactor must be greater than minTextScaleFactor');