AnchorEffect.by constructor

AnchorEffect.by({
  1. required Anchor offset,
  2. required EffectController controller,
  3. bool? cleanup,
  4. bool? enabled,
})

Anchors the closest AnchorOwner ancestor by offset, relative to its anchor when the effect is mounted.

Implementation

factory AnchorEffect.by({
  required Anchor offset,
  required EffectController controller,
  bool? cleanup,
  bool? enabled,
}) = _AnchorByEffect;