CompositedTransformFollowerModifier constructor

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

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 CompositedTransformFollowerModifier({
  super.key,
  super.child,
  super.modifierKey,
  required this.link,
  this.showWhenUnlinked = true,
  this.offset = Offset.zero,
  this.targetAnchor = Alignment.topLeft,
  this.followerAnchor = Alignment.topLeft,
});