copyWith method

ImageSliderStyleOptions copyWith({
  1. ImageSliderStyleEnum? style,
  2. Color? color,
  3. Color? borderColor,
  4. double? width,
  5. double? imageWidth,
})

Creates a copy of this ImageSliderStyleOptions with the given fields replaced with new values

Implementation

ImageSliderStyleOptions copyWith({
  ImageSliderStyleEnum? style,
  Color? color,
  Color? borderColor,
  double? width,
  double? imageWidth,
}) {
  return ImageSliderStyleOptions(
    style: style ?? this.style,
    color: color ?? this.color,
    borderColor: borderColor ?? this.borderColor,
    width: width ?? this.width,
    imageWidth: imageWidth ?? this.imageWidth,
  );
}