copyWith method
CkSnackBarConfig
copyWith({
- CkSnackBarPosition? position,
- double? borderRadius,
- Color? backgroundColor,
- List<
BoxShadow> ? boxShadow, - EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- TextStyle? textStyle,
- double? borderWidthLeft,
- double? borderWidthOthers,
- double? iconSize,
- Color? successColor,
- Color? errorColor,
- Color? warningColor,
- Color? infoColor,
- IconData? successIcon,
- IconData? errorIcon,
- IconData? warningIcon,
- IconData? infoIcon,
Implementation
CkSnackBarConfig copyWith({
CkSnackBarPosition? position,
double? borderRadius,
Color? backgroundColor,
List<BoxShadow>? boxShadow,
EdgeInsetsGeometry? margin,
EdgeInsetsGeometry? padding,
TextStyle? textStyle,
double? borderWidthLeft,
double? borderWidthOthers,
double? iconSize,
Color? successColor,
Color? errorColor,
Color? warningColor,
Color? infoColor,
IconData? successIcon,
IconData? errorIcon,
IconData? warningIcon,
IconData? infoIcon,
}) {
return CkSnackBarConfig(
position: position ?? this.position,
borderRadius: borderRadius ?? this.borderRadius,
backgroundColor: backgroundColor ?? this.backgroundColor,
boxShadow: boxShadow ?? this.boxShadow,
margin: margin ?? this.margin,
padding: padding ?? this.padding,
textStyle: textStyle ?? this.textStyle,
borderWidthLeft: borderWidthLeft ?? this.borderWidthLeft,
borderWidthOthers: borderWidthOthers ?? this.borderWidthOthers,
iconSize: iconSize ?? this.iconSize,
successColor: successColor ?? this.successColor,
errorColor: errorColor ?? this.errorColor,
warningColor: warningColor ?? this.warningColor,
infoColor: infoColor ?? this.infoColor,
successIcon: successIcon ?? this.successIcon,
errorIcon: errorIcon ?? this.errorIcon,
warningIcon: warningIcon ?? this.warningIcon,
infoIcon: infoIcon ?? this.infoIcon,
);
}