VillainAnimation class

Constructors

VillainAnimation({required AnimatedWidgetBuilder animatedWidgetBuilder, required Animatable animatable, Duration from = Duration.zero, Duration to = _kMaterialRouteTransitionLength, Curve curve = Curves.linear})
form defaults to 0 and to defaults to the MaterialPageRoute transition duration which is 300 ms

Properties

animatable Animatable
final
animatedWidgetBuilder AnimatedWidgetBuilder
final
curve Curve
final
from Duration
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
to Duration
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fade({double fadeFrom = 0.0, double fadeTo = 1.0, Duration from = Duration.zero, Duration to = _kMaterialRouteTransitionLength, Curve curve = Curves.linear}) VillainAnimation
fromBottom({double relativeOffset = 1.0, Duration from = Duration.zero, Duration to = _kMaterialRouteTransitionLength, Curve curve = Curves.linear}) VillainAnimation
fromLeft({double offset = 1.0, Duration from = Duration.zero, Duration to = _kMaterialRouteTransitionLength, Curve curve = Curves.linear}) VillainAnimation
fromRight({double offset = 1.0, Duration from = Duration.zero, Duration to = _kMaterialRouteTransitionLength, Curve curve = Curves.linear}) VillainAnimation
fromTop({double offset = 1.0, Duration from = Duration.zero, Duration to = _kMaterialRouteTransitionLength, Curve curve = Curves.linear}) VillainAnimation
scale({double fromScale = 0.5, double toScale = 1.0, Duration from = Duration.zero, Duration to = _kMaterialRouteTransitionLength, Curve curve = Curves.linear}) VillainAnimation
transformRotate({double toAngle = 0.0, required double fromAngle, Duration from = Duration.zero, required Duration to, Curve curve = Curves.linear}) VillainAnimation
transformTranslate({Offset toOffset = Offset.zero, required Offset fromOffset, Duration from = Duration.zero, required Duration to, Curve curve = Curves.linear}) VillainAnimation
translate({Offset? fromOffset, Offset? toOffset, Duration from = Duration.zero, Duration to = _kMaterialRouteTransitionLength, Curve curve = Curves.linear}) VillainAnimation