copyWith method
AppCarouselTheme
copyWith({
- Color? backgroundColor,
- double? elevation,
- ShapeBorder? shape,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
AppCarouselTheme copyWith({
Color? backgroundColor,
double? elevation,
ShapeBorder? shape,
}) {
return AppCarouselTheme(
backgroundColor: backgroundColor ?? this.backgroundColor,
elevation: elevation ?? this.elevation,
shape: shape ?? this.shape,
);
}