RenderLeaderLayer constructor Null safety

RenderLeaderLayer(
  1. {required LayerLink link,
  2. RenderBox? child}
)

Creates a render object that uses a LeaderLayer.

The link must not be null.

Implementation

RenderLeaderLayer({
  required LayerLink link,
  RenderBox? child,
}) : assert(link != null),
     _link = link,
     super(child);