FollowerLayer constructor
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);