CompositedTransformFollower constructor Null safety

const CompositedTransformFollower(
  1. {Key? key,
  2. required LayerLink link,
  3. bool showWhenUnlinked = true,
  4. Offset offset = Offset.zero,
  5. Alignment targetAnchor = Alignment.topLeft,
  6. Alignment followerAnchor = Alignment.topLeft,
  7. Widget? child}
)

Creates a composited transform target widget.

The link property must not be null. If it was also provided to a CompositedTransformTarget, that widget must come earlier in the paint order.

The showWhenUnlinked and offset properties must also not be null.

Implementation

const CompositedTransformFollower({
  super.key,
  required this.link,
  this.showWhenUnlinked = true,
  this.offset = Offset.zero,
  this.targetAnchor = Alignment.topLeft,
  this.followerAnchor = Alignment.topLeft,
  super.child,
}) : assert(link != null),
     assert(showWhenUnlinked != null),
     assert(offset != null),
     assert(targetAnchor != null),
     assert(followerAnchor != null);