copyWith method

CkSnackBarConfig copyWith({
  1. CkSnackBarPosition? position,
  2. double? borderRadius,
  3. Color? backgroundColor,
  4. List<BoxShadow>? boxShadow,
  5. EdgeInsetsGeometry? margin,
  6. EdgeInsetsGeometry? padding,
  7. TextStyle? textStyle,
  8. double? borderWidthLeft,
  9. double? borderWidthOthers,
  10. double? iconSize,
  11. Color? successColor,
  12. Color? errorColor,
  13. Color? warningColor,
  14. Color? infoColor,
  15. IconData? successIcon,
  16. IconData? errorIcon,
  17. IconData? warningIcon,
  18. 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,
  );
}