link property Null safety

LayerLink link

The link to the LeaderLayer.

The same object should be provided to a LeaderLayer that is earlier in the layer tree. When this layer is composited, it will apply a transform that moves its children to match the position of the LeaderLayer.

Implementation

LayerLink get link => _link;
void link=(LayerLink value)

Implementation

set link(LayerLink value) {
  assert(value != null);
  _link = value;
}