CarouselController class

Constructors

CarouselController({required int itemCount, int initialPage = 0, bool keepPage = true, double viewportFraction = 0.8, int pageOffset = 100000})

Properties

currentIndex double
no setter
currentPage double
no setter
hashCode int
The hash code for this object.
no setterinherited
itemCount int
final
pageController PageController
final
pageOffset int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

animateToIndex(int index, {required Duration duration, required Curve curve}) Future<void>
animateToPage(int page, {required Duration duration, required Curve curve}) Future<void>
dispose() → void
indexToPage(int index) int
jumpToPage(int page) → void
jumToIndex(int index) → void
nextPage({required Duration duration, required Curve curve}) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pageToIndex(int page) int
previousPage({required Duration duration, required Curve curve}) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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