RenderFollowerLayer constructor Null safety

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.

The link and offset arguments must not be null.

Implementation

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