LeaderLayer constructor

LeaderLayer({
  1. required LayerLink link,
  2. Offset offset = Offset.zero,
})

Creates a leader layer.

The link property must not have been provided to any other LeaderLayer layers that are attached to the layer tree at the same time.

The offset property must be non-null before the compositing phase of the pipeline.

Implementation

LeaderLayer({ required LayerLink link, Offset offset = Offset.zero }) : _link = link, _offset = offset;