insertBefore(layer) {
    const index = this.parent.findIndex(this);

    this.parent.insertChild(layer, index - 1);
    this.project.addIndexItem(layer);
    return layer;
  }
toggle item's attribute

@param {*} field
@param {*} toggleValue