link property

LayerLink link

The object with which this layer should register.

The link will be established when this layer is attached, and will be cleared when this layer is detached.

Implementation

LayerLink get link => _link;
void link=(LayerLink value)

Implementation

set link(LayerLink value) {
  if (_link == value) {
    return;
  }
  if (attached) {
    _link._unregisterLeader(this);
    value._registerLeader(this);
  }
  _link = value;
}