AnimationStyle class

Used to override the default parameters of an animation.

Currently, this class is used by the following widgets:

If duration and reverseDuration are set to Duration.zero, the corresponding animation will be disabled.

All of the parameters are optional. If no parameters are specified, the default animation will be used.

Mixed-in types
Annotations

Constructors

AnimationStyle({Curve? curve, Duration? duration, Curve? reverseCurve, Duration? reverseDuration})
Creates an instance of Animation Style class.

Properties

curve Curve?
When specified, the animation will use this curve.
final
duration Duration?
When specified, the animation will use this duration.
final
hashCode int
The hash code for this object.
no setteroverride
reverseCurve Curve?
When specified, the reverse animation will use this curve.
final
reverseDuration Duration?
When specified, the reverse animation will use this duration.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({Curve? curve, Duration? duration, Curve? reverseCurve, Duration? reverseDuration}) AnimationStyle
Creates a new AnimationStyle based on the current selection, with the provided parameters overridden.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
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
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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

Static Properties

noAnimation AnimationStyle
Creates an instance of Animation Style class with no animation.
getter/setter pair

Static Methods

lerp(AnimationStyle? a, AnimationStyle? b, double t) AnimationStyle?
Linearly interpolate between two animation styles.