copyCenter method Null safety

void copyCenter(
  1. Vector3 center
)

Copy the center of this.

Implementation

void copyCenter(Vector3 center) {
  center
    ..setFrom(_min)
    ..add(_max)
    ..scale(0.5);
}