copyWith method

OverlayStateConfig copyWith({
  1. Color? backgroundColor,
  2. BorderRadius? borderRadius,
  3. EdgeInsets? padding,
  4. EdgeInsets? margin,
  5. double? elevation,
  6. Color? shadowColor,
  7. Color? iconColor,
  8. Color? textColor,
  9. double? iconSize,
  10. double? maxWidth,
  11. double? minHeight,
  12. bool? showIcon,
  13. bool? showMessage,
  14. 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,
  );
}