FollowerLayer constructor

FollowerLayer({@required LayerLink link, bool showWhenUnlinked: true, Offset unlinkedOffset: Offset.zero, Offset linkedOffset: Offset.zero })

Creates a follower layer.

The link property must not be null.

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,
}) : assert(link != null);