copyWith method
OverlayStateConfig
copyWith({
- Color? backgroundColor,
- BorderRadius? borderRadius,
- EdgeInsets? padding,
- EdgeInsets? margin,
- double? elevation,
- Color? shadowColor,
- Color? iconColor,
- Color? textColor,
- double? iconSize,
- double? maxWidth,
- double? minHeight,
- bool? showIcon,
- bool? showMessage,
- Widget? customWidget,
Copy with method for easy customization
Implementation
OverlayStateConfig copyWith({
Color? backgroundColor,
BorderRadius? borderRadius,
EdgeInsets? padding,
EdgeInsets? margin,
double? elevation,
Color? shadowColor,
Color? iconColor,
Color? textColor,
double? iconSize,
double? maxWidth,
double? minHeight,
bool? showIcon,
bool? showMessage,
Widget? customWidget,
}) {
return OverlayStateConfig(
backgroundColor: backgroundColor ?? this.backgroundColor,
borderRadius: borderRadius ?? this.borderRadius,
padding: padding ?? this.padding,
margin: margin ?? this.margin,
elevation: elevation ?? this.elevation,
shadowColor: shadowColor ?? this.shadowColor,
iconColor: iconColor ?? this.iconColor,
textColor: textColor ?? this.textColor,
iconSize: iconSize ?? this.iconSize,
maxWidth: maxWidth ?? this.maxWidth,
minHeight: minHeight ?? this.minHeight,
showIcon: showIcon ?? this.showIcon,
showMessage: showMessage ?? this.showMessage,
customWidget: customWidget ?? this.customWidget,
);
}