fromBottom static method

VillainAnimation fromBottom({
  1. double relativeOffset = 1.0,
  2. Duration from = Duration.zero,
  3. Duration to = _kMaterialRouteTransitionLength,
  4. Curve curve = Curves.linear,
})

Implementation

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