TweenImageWidget class

Tween image widget 💖💖💖 Widget that can play the animation repeatedly, or manually control the progress of the animation sequence

example:

TweenImageWidget(
      ImagesEntry(1, 25, "images/pic_animation%s.png"),
      durationMilliseconds: 5000,
      repeat: false,
      startsValue: 0.2,//animationValue / 100
    )
Inheritance

Constructors

TweenImageWidget(ImagesEntry entry, {double? width, double? height, int durationMilliseconds = 3000, bool repeat = true, double? startsValue, dynamic key})
repeat's default value is true, if need manually control the animation, please pass in false

Properties

animationController → AnimationController?
Get AnimationController
no setter
durationMilliseconds → int
final
entry → ImagesEntry
final
hashCode → int
The hash code for this object.
no setterinherited
height → double?
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
repeat → bool
Starts running this animation in the forward direction, and restarts the animation when it completes.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startsValue → double?
Reference on AnimationController.value,is should be >= 0.0 && <= 1.0
final
width → double?
final

Methods

animateToTarget(double target, {Duration? duration}) → TickerFuture?
Drives the animation from its current value to target.
createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _TweenImageWidgetState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
forward({double? from}) → TickerFuture?
Starts running this animation forwards (towards the end).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reverse({double? from}) → TickerFuture?
Starts running this animation in reverse (towards the beginning).
stop({bool canceled = true}) → void
Stops running this animation.
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

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