copyWith method
- Color? backgroundColor,
- double? elevation,
- OutlinedBorder? shape,
- WidgetStateProperty<
Color?> ? overlayColor, - EdgeInsets? padding,
Creates a copy of this object with the given fields replaced with the new values.
Implementation
CarouselViewThemeData copyWith({
Color? backgroundColor,
double? elevation,
OutlinedBorder? shape,
WidgetStateProperty<Color?>? overlayColor,
EdgeInsets? padding,
}) {
return CarouselViewThemeData(
backgroundColor: backgroundColor ?? this.backgroundColor,
elevation: elevation ?? this.elevation,
shape: shape ?? this.shape,
overlayColor: overlayColor ?? this.overlayColor,
padding: padding ?? this.padding,
);
}