leaderAnchor property Null safety

Alignment leaderAnchor

The anchor point on the linked RenderLeaderLayer that followerAnchor will line up with.

For example, when leaderAnchor and followerAnchor are both Alignment.topLeft, this RenderFollowerLayer will be top left aligned with the linked RenderLeaderLayer. When leaderAnchor is Alignment.bottomLeft and followerAnchor is Alignment.topLeft, this RenderFollowerLayer will be left aligned with the linked RenderLeaderLayer, and its top edge will line up with the RenderLeaderLayer's bottom edge.

Defaults to Alignment.topLeft.

Implementation

Alignment get leaderAnchor => _leaderAnchor;
void leaderAnchor=(Alignment value)

Implementation

set leaderAnchor(Alignment value) {
  assert(value != null);
  if (_leaderAnchor == value) {
    return;
  }
  _leaderAnchor = value;
  markNeedsPaint();
}