SvgDrawingAnimation class

A widget that displays a drawing animation of SVG.

Inheritance

Constructors

SvgDrawingAnimation(SvgProvider svgProvider, {Key? key, Duration? duration, double? speed, Curve curve = Curves.linear, bool repeats = false, Animation<double>? animation, LoadingWidgetBuilder loadingWidgetBuilder = defaultLoadingWidgetBuilder, ErrorWidgetBuilder errorWidgetBuilder = defaultErrorWidgetBuilder, PenRenderer? penRenderer})
const

Properties

animation Animation<double>?
The animation.
final
curve Curve
The curve to apply when animating.
final
duration Duration?
The duration over which to animate. Use one of duration or speed.
final
errorWidgetBuilder → ErrorWidgetBuilder
A builder that specifies the widget to display to the user if an error has occurred.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loadingWidgetBuilder → LoadingWidgetBuilder
A builder that specifies the widget to display to the user while the SVG is still loading.
final
penRenderer PenRenderer?
Optionally renders the Pen during the drawing animation.
final
repeats bool
Whether the animation plays once or repeats indefinitely.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed double?
The speed at which to animate. Use one of duration or speed.
final
svgProvider SvgProvider
Provides the SVG to display.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<SvgDrawingAnimation>
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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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.
inherited

Static Methods

getPathLengthSum(Drawable drawable) double
Computes the total length of paths in SVG.