Exemplo n.º 1
0
 public LeaderLayer(LayerLink link, Offset offset = null)
 {
     D.assert(link != null);
     offset      = offset ?? Offset.zero;
     this.link   = link;
     this.offset = offset;
 }
Exemplo n.º 2
0
 public FollowerLayer(
     LayerLink link        = null,
     bool showWhenUnlinked = true,
     Offset unlinkedOffset = null,
     Offset linkedOffset   = null
     )
 {
     D.assert(link != null);
     this.link             = link;
     this.showWhenUnlinked = showWhenUnlinked;
     this.unlinkedOffset   = unlinkedOffset ?? Offset.zero;
     this.linkedOffset     = linkedOffset ?? Offset.zero;
 }