CustomSizeTransition constructor

const CustomSizeTransition({
  1. Key? key,
  2. Axis axis = Axis.vertical,
  3. AlignmentGeometry? alignment,
  4. required Animation<double> sizeFactor,
  5. double axisAlignment = 0.0,
  6. Widget? child,
})

Creates a size transition.

The axis, sizeFactor, and axisAlignment arguments must not be null. The axis argument defaults to Axis.vertical. The axisAlignment defaults to 0.0, which centers the child along the main axis during the transition.

Implementation

const CustomSizeTransition({
  Key? key,
  this.axis = Axis.vertical,
  this.alignment,
  required Animation<double> sizeFactor,
  this.axisAlignment = 0.0,
  this.child,
}) : super(key: key, listenable: sizeFactor);