copyWith method
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,
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,
);
}