CarouselState class

Constructors

CarouselState(CarouselOptions options, Function onResetTimer, Function onResumeTimer, dynamic changeMode(CarouselPageChangedReason))

Properties

changeMode ↔ dynamic Function(CarouselPageChangedReason)
The callback to set the Reason Carousel changed
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
initialPage int
The initial index of the PageView on CarouselSlider init.
getter/setter pair
itemCount int?
The widgets count that should be shown at carousel
getter/setter pair
onResetTimer Function
Will be called when using pageController to go to next page or previous page. It will clear the autoPlay timer. Internal use only
getter/setter pair
onResumeTimer Function
Will be called when using pageController to go to next page or previous page. It will restart the autoPlay timer. Internal use only
getter/setter pair
options CarouselOptions
The CarouselOptions to create this state
getter/setter pair
pageController PageController?
pageController is created using the properties passed to the constructor and can be used to control the PageView it is passed to.
getter/setter pair
realPage int
The actual index of the PageView.
getter/setter pair
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