copyWith method

CarouselViewThemeData copyWith({
  1. Color? backgroundColor,
  2. double? elevation,
  3. OutlinedBorder? shape,
  4. WidgetStateProperty<Color?>? overlayColor,
  5. 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,
  );
}