CompositedTransformTarget constructor Null safety

const CompositedTransformTarget(
  1. {Key? key,
  2. required LayerLink link,
  3. Widget? child}
)

Creates a composited transform target widget.

The link property must not be null, and must not be currently being used by any other CompositedTransformTarget object that is in the tree.

Implementation

const CompositedTransformTarget({
  super.key,
  required this.link,
  super.child,
}) : assert(link != null);