ScaleTransition constructor Null safety

const ScaleTransition(
  1. {Key? key,
  2. required Animation<double> scale,
  3. Alignment alignment = Alignment.center,
  4. FilterQuality? filterQuality,
  5. Widget? child}
)

Creates a scale transition.

The scale argument must not be null. The alignment argument defaults to Alignment.center.

Implementation

const ScaleTransition({
  super.key,
  required Animation<double> scale,
  this.alignment = Alignment.center,
  this.filterQuality,
  this.child,
}) : assert(scale != null),
     super(listenable: scale);