copyWith method

ResponsiveMasterConfig copyWith({
  1. double? mobileBreakpoint,
  2. double? tabletBreakpoint,
  3. double? desktopBreakpoint,
  4. bool? includeSafeArea,
  5. bool? respectTextScaleFactor,
  6. bool? debugMode,
  7. bool? enableCaching,
  8. double? designWidth,
  9. double? designHeight,
  10. bool? allowFontScalingBeyondLimit,
  11. double? maxTextScaleFactor,
  12. double? minTextScaleFactor,
})

Create a copy with modified values

Implementation

ResponsiveMasterConfig copyWith({
  double? mobileBreakpoint,
  double? tabletBreakpoint,
  double? desktopBreakpoint,
  bool? includeSafeArea,
  bool? respectTextScaleFactor,
  bool? debugMode,
  bool? enableCaching,
  double? designWidth,
  double? designHeight,
  bool? allowFontScalingBeyondLimit,
  double? maxTextScaleFactor,
  double? minTextScaleFactor,
}) {
  return ResponsiveMasterConfig(
    mobileBreakpoint: mobileBreakpoint ?? this.mobileBreakpoint,
    tabletBreakpoint: tabletBreakpoint ?? this.tabletBreakpoint,
    desktopBreakpoint: desktopBreakpoint ?? this.desktopBreakpoint,
    includeSafeArea: includeSafeArea ?? this.includeSafeArea,
    respectTextScaleFactor:
        respectTextScaleFactor ?? this.respectTextScaleFactor,
    debugMode: debugMode ?? this.debugMode,
    enableCaching: enableCaching ?? this.enableCaching,
    designWidth: designWidth ?? this.designWidth,
    designHeight: designHeight ?? this.designHeight,
    allowFontScalingBeyondLimit:
        allowFontScalingBeyondLimit ?? this.allowFontScalingBeyondLimit,
    maxTextScaleFactor: maxTextScaleFactor ?? this.maxTextScaleFactor,
    minTextScaleFactor: minTextScaleFactor ?? this.minTextScaleFactor,
  );
}