DesignCarouselControls class

What a carousel's controls act on.

Annotations

Constructors

DesignCarouselControls({required int page, required int count, required ValueListenable<double> position, required VoidCallback? previous, required VoidCallback? next, required ValueChanged<int> goToPage, required bool playing, required VoidCallback? togglePlay, required bool focused})
The controls; the carousel makes them.
const

Properties

count → int
How many slides there are.
final
focused → bool
Whether the keyboard is on the slides (their focus ring).
final
goToPage → ValueChanged<int>
Shows a slide (a dot's press).
final
hashCode → int
The hash code for this object.
no setterinherited
next → VoidCallback?
Turns on; null at the last slide of a carousel that does not loop.
final
page → int
The slide shown.
final
playing → bool
Whether it is playing.
final
position → ValueListenable<double>
Where the slides are, in slides, as they move: 1.5 is half way from slide 1 to slide 2, so a look's dots can follow a swipe. A carousel that loops runs from 0 up to count and wraps: 2.5 of 3 is half way from the last slide to the first.
final
previous → VoidCallback?
Turns back; null at the first slide of a carousel that does not loop.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
togglePlay → VoidCallback?
Plays or pauses; null when it has no autoplay.
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