Transform constructor Null safety

const Transform(
  1. {Key? key,
  2. required Matrix4 transform,
  3. Offset? origin,
  4. AlignmentGeometry? alignment,
  5. bool transformHitTests = true,
  6. FilterQuality? filterQuality,
  7. Widget? child}
)

Creates a widget that transforms its child.

The transform argument must not be null.

Implementation

const Transform({
  super.key,
  required this.transform,
  this.origin,
  this.alignment,
  this.transformHitTests = true,
  this.filterQuality,
  super.child,
}) : assert(transform != null);