SlideController class

It is used to control the slide movement.

Initially, the controller simply acts like it never exists. Once there is a SlideControllerListener attached to it using addListener, is when the controller is really used.

Pass the instance of SlideController to SlideWidget by overriding the getter SlideWidget.controller. Also, pass the same instance to the class where SlideControllerListener is implemented. such a way the listener can be attached to the controller.

Use the removeListener when not needed anymore.

See also SlideControllerListener for an example usage.

Annotations
  • @sealed

Constructors

SlideController()
creates an instance of SlideController

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

addListener(SlideControllerListener? listener) → void
Attaches listener, an instance of SlideControllerListener to the controller.
advanceSlide() bool
DO NOT USE THIS METHOD.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListener() → void
Removes the listener from the controller.
reverseSlide() bool
DO NOT USE THIS METHOD.
toString() String
A string representation of this object.
inherited

Operators

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