FollowerLayer constructor

FollowerLayer({
  1. required LayerLink link,
  2. bool? showWhenUnlinked = true,
  3. Offset? unlinkedOffset = Offset.zero,
  4. Offset? linkedOffset = Offset.zero,
})

Creates a follower layer.

The unlinkedOffset, linkedOffset, and showWhenUnlinked properties must be non-null before the compositing phase of the pipeline.

Implementation

FollowerLayer({
  required this.link,
  this.showWhenUnlinked = true,
  this.unlinkedOffset = Offset.zero,
  this.linkedOffset = Offset.zero,
});