fromRight static method
Implementation
static VillainAnimation fromRight({
double offset = 1.0,
Duration from = Duration.zero,
Duration to = _kMaterialRouteTransitionLength,
Curve curve = Curves.linear,
}) =>
VillainAnimation(
curve: curve,
from: from,
to: to,
animatable:
Tween<Offset>(begin: Offset(offset, 0.0), end: Offset(0.0, 0.0)),
animatedWidgetBuilder: (animation, child) {
return SlideTransition(
position: animation as Animation<Offset>,
child: child,
);
});