xSA method

Widget xSA(
  1. {Key key,
  2. Duration duration,
  3. Duration delay,
  4. double verticalOffset = 50.0,
  5. double horizontalOffset = 0.0}
)

Implementation

Widget xSA({
  final Key key,

  /// The duration of the child animation.
  final Duration duration,

  /// The delay between the beginning of two children's animations.
  final Duration delay,

  /// The vertical offset to apply at the start of the animation (can be negative).
  final double verticalOffset = 50.0,

  /// The horizontal offset to apply at the start of the animation (can be negative).
  final double horizontalOffset = 0.0,

  /// Creates a slide animation that slides its child from the given
  /// [verticalOffset] and [horizontalOffset] to its final position.
  ///
  /// A default value of 50.0 is applied to [verticalOffset] if
  /// [verticalOffset] and [horizontalOffset] are both undefined or null.
  ///
  /// The [child] argument must not be null.
}) {
  return SlideAnimation(
      delay: delay,
      duration: duration,
      horizontalOffset: horizontalOffset,
      key: key,
      verticalOffset: verticalOffset,
      child: this);
}