InlineCarouselConfig class

Configuration for an inline carousel campaign, surfaced through DigiaSlot at the placement identified by slotKey.

Dart port of the Android InlineCarouselConfig data class — field names, defaults, and parsing semantics match the Android SDK so both platforms consume the same backend templateConfig payload.

Constructors

InlineCarouselConfig({required String slotKey, required List<CarouselItem> items, int height = 180, bool autoPlay = true, int autoPlayInterval = 3000, int animationDuration = 700, bool infiniteScroll = true, double viewportFraction = 0.88, double itemSpacing = 12, double cornerRadius = 12, CarouselIndicatorConfig indicator = const CarouselIndicatorConfig()})
const

Properties

animationDuration int
Slide transition duration in milliseconds.
final
autoPlay bool
final
autoPlayInterval int
Auto-play interval in milliseconds.
final
cornerRadius double
Corner radius in logical pixels applied to each slide's image.
final
hashCode int
The hash code for this object.
no setterinherited
height int
final
indicator CarouselIndicatorConfig
final
infiniteScroll bool
final
items List<CarouselItem>
final
itemSpacing double
Gap in logical pixels between adjacent slides, independent of viewportFraction's peek amount.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slotKey String
final
viewportFraction double
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromJson(Map<String, dynamic> json) InlineCarouselConfig?
Parses a carousel templateConfig object. Returns null when the config is missing a slotKey or has no valid items — mirroring Android, where such campaigns are dropped rather than rendered empty.