AppinioSwiperController class
A controller used to control an AppinioSwiper,
The controller notifies listeners when a swipe starts and for each tick of a swipe animation.
- Inheritance
-
- Object
- ChangeNotifier
- AppinioSwiperController
Constructors
Properties
-
activityHistory
→ Future<
List< SwiperActivity> ?> -
The history of swipes for the swiper widget currently attached to this
controller.
no setter
- cardIndex → int?
-
The index of the card currently on the top.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- position → SwiperPosition?
-
The position of the swiper.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- swipeActivity → SwiperActivity?
-
The current activity of the swiper.
no setter
- swipeProgress → Offset?
-
The current position of the card, as a result of a user drag and/or a
swipe animation.
no setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
animateTo(
Offset target, {required Duration duration, required Curve curve}) → Future< void> - Animate the card at the top of the stack to the specified offset.
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
setCardIndex(
int index) → void -
swipeDefault(
) → Future< void> - Swipe the card in the default direction.
-
swipeDown(
) → Future< void> - Swipe the card to the bottom.
-
swipeLeft(
) → Future< void> - Swipe the card to the left side.
-
swipeRight(
) → Future< void> - Swipe the card to the right side.
-
swipeUp(
) → Future< void> - Swipe the card to the top.
-
toString(
) → String -
A string representation of this object.
inherited
-
unswipe(
) → Future< void> - Unswipe the card.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited