RenderFollowerLayer constructor

RenderFollowerLayer({
  1. required LayerLink link,
  2. bool showWhenUnlinked = true,
  3. Offset offset = Offset.zero,
  4. Alignment leaderAnchor = Alignment.topLeft,
  5. Alignment followerAnchor = Alignment.topLeft,
  6. RenderBox? child,
})

Creates a render object that uses a FollowerLayer.

Implementation

RenderFollowerLayer({
  required LayerLink link,
  bool showWhenUnlinked = true,
  Offset offset = Offset.zero,
  Alignment leaderAnchor = Alignment.topLeft,
  Alignment followerAnchor = Alignment.topLeft,
  RenderBox? child,
}) : _link = link,
     _showWhenUnlinked = showWhenUnlinked,
     _offset = offset,
     _leaderAnchor = leaderAnchor,
     _followerAnchor = followerAnchor,
     super(child);