AnimationBuilder class

Inheritance

Constructors

AnimationBuilder({Key key, AnimationController controller, Animation<double> animation, Widget child, Tween tween, Duration duration, Curve curve = Curves.linear, int cycles, int repeats, Widget builder(Animation, Widget child), Widget builderMap(Map<String, Animation>, Widget child), Map<String, Tween> tweenMap, dynamic name, bool autoTrigger, Function customListener, Function endAnimationListener, dynamic statusListener(AnimationStatus)})

Properties

animation Animation<double>
final
autoTrigger bool
Whether to start the animation when the AnimationBuilder widget is inserted into the tree.
final
builder Widget Function(Animation, Widget child)
The build strategy currently used for one Tween. AnimationBuilder widget rebuilds itself every time the animation changes value. [...]
final
builderMap Widget Function(Map<String, Animation>, Widget child)
The build strategy currently used for multi-Tween. AnimationBuilder widget rebuilds itself every time the animation changes value. [...]
final
child Widget
final
controller AnimationController
final
curve Curve
An easing curve, i.e. a mapping of the unit interval to the unit interval.
final
customListener Function
Function to be called every time the animation value changes. [...]
final
cycles int
The number of forward and backward periods the animation performs before stopping
final
duration Duration
A span of time, such as 27 days, 4 hours, 12 minutes, and 3 seconds
final
endAnimationListener Function
VoidCallback to be called when animation is finished.
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
key Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
name → dynamic
The name of your AnimationBuilder widget. Many widgets can have the same name. [...]
final
repeats int
The number of forward periods the animation performs before stopping
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
statusListener → dynamic Function(AnimationStatus)
Function to be called every time the status of the animation changes. [...]
final
tween Tween
A linear interpolation between a beginning and ending value. [...]
final
tweenMap Map<String, Tween>
A linear interpolation between a beginning and ending value. [...]
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
createState() AnimationBuilderState
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. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
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. [...]
@nonVirtual, inherited