SizeTransition constructor

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

Creates a size transition.

The axis argument defaults to Axis.vertical. The axisAlignment defaults to zero, which centers the child along the main axis during the transition.

Implementation

const SizeTransition({
  super.key,
  this.axis = Axis.vertical,
  required Animation<double> sizeFactor,
  this.axisAlignment = 0.0,
  this.fixedCrossAxisSizeFactor,
  this.child,
}) : assert(fixedCrossAxisSizeFactor == null || fixedCrossAxisSizeFactor >= 0.0),
  super(listenable: sizeFactor);