CarouselItem class
Represents a single item in an AuraUICarousel.
imageUrl is required. onTap is optional — if provided, the item becomes tappable and the callback fires when the user taps it.
Constructors
- CarouselItem({required String imageUrl, VoidCallback? onTap})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageUrl → String
-
final
- onTap → VoidCallback?
-
Optional callback triggered when this item is tapped.
If null, the item is not interactive.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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