copyWith method
ImageSliderStyleOptions
copyWith({
- ImageSliderStyleEnum? style,
- Color? color,
- Color? borderColor,
- double? width,
- 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,
);
}