center method

DFPosition center()

中心坐标

Implementation

DFPosition center() {
  return DFPosition(this.left + this.width / 2, this.top + this.height / 2);
}