final class CarouselViewAttributes extends AnimatedPropertyOwner
implements DuitAttributes<CarouselViewAttributes> {
final CarouselViewConstructor constructor;
final EdgeInsets? padding;
final Color? backgroundColor;
final double? elevation;
final ShapeBorder? shape;
final WidgetStateProperty<Color?>? overlayColor;
final double shrinkExtent, itemExtent;
final Axis scrollDirection;
final bool enableSplash, reverse, itemSnapping, consumeMaxWeight;
final List<int> flexWeights;
const CarouselViewAttributes.common({
this.padding,
this.backgroundColor,
this.elevation,
this.shape,
this.overlayColor,
required this.itemSnapping,
required this.shrinkExtent,
required this.scrollDirection,
required this.enableSplash,
required this.reverse,
required super.affectedProperties,
required super.parentBuilderId,
required this.itemExtent,
}) : flexWeights = const [],
consumeMaxWeight = false,
constructor = CarouselViewConstructor.common;
const CarouselViewAttributes.weighted({
this.padding,
this.backgroundColor,
this.elevation,
this.shape,
this.overlayColor,
required this.itemSnapping,
required this.shrinkExtent,
required this.scrollDirection,
required this.enableSplash,
required this.reverse,
required this.flexWeights,
required this.consumeMaxWeight,
required super.affectedProperties,
required super.parentBuilderId,
}) : constructor = CarouselViewConstructor.weighted,
itemExtent = 0.0;