Scroll-step helpers for carousel frame navigation.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Methods
-
maxIndex(
{required M3ECarouselType type, required M3ECarouselHeroAlignment heroAlignment, required bool isExtended, required int childrenLength}) → int -
Largest step index for
type. Negative when the track cannot step. -
nextStep(
{required M3ECarouselType type, required M3ECarouselHeroAlignment heroAlignment, required bool isExtended, required double uncontainedItemExtent, required double leadingGap, required List< int> layoutWeight, required double mainExtent, required int childrenLength, required int itemScrolled, required double prevScrollPosition, required int direction}) → ({int itemScrolled, double nextScrollPosition})? -
Computes the next scroll position and updated
itemScrolledfor one step. -
offsetForIndex(
{required M3ECarouselType type, required M3ECarouselHeroAlignment heroAlignment, required bool isExtended, required double uncontainedItemExtent, required double leadingGap, required List< int> layoutWeight, required double mainExtent, required int childrenLength, required int index}) → double -
Scroll offset that places
indexwhere a swipe would land it.