AnimatedCounterController class

Programmatic control over an AnimatedCounter widget.

Pass to AnimatedCounter.controller and call animateTo, jumpTo, pause, resume, stop, restart, repeat, or reverse.

Inheritance

Constructors

AnimatedCounterController({num initialValue = 0})

Properties

$pauseCallback VoidCallback?
getter/setter pair
$repeatCallback ↔ void Function({bool reverse})?
getter/setter pair
$restartCallback VoidCallback?
getter/setter pair
$resumeCallback VoidCallback?
getter/setter pair
$reverseCallback VoidCallback?
getter/setter pair
$statusGetter ValueGetter<AnimationStatus>?
getter/setter pair
$statusListeners List<AnimationStatusListener>
final
$stopCallback VoidCallback?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
overrideDuration Duration?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status AnimationStatus
no setter
value num
no setter

Methods

$notifyStatusListeners(AnimationStatus status) → void
addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
addStatusListener(AnimationStatusListener listener) → void
animateTo(num targetValue) → void
Animates the counter to targetValue.
dispose() → void
Discards any resources used by the object.
inherited
jumpTo(num targetValue) → void
Instantly jumps to targetValue without animation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
pause() → void
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
removeStatusListener(AnimationStatusListener listener) → void
repeat({bool reverse = false}) → void
restart() → void
resume() → void
reverse() → void
stop() → void
toString() String
A string representation of this object.
inherited

Operators

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