copyWith method

  1. @override
AppCarouselTheme copyWith({
  1. Color? backgroundColor,
  2. double? elevation,
  3. 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,
  );
}