center property

Vector2 get center

The center of the AABB.

Implementation

Vector2 get center =>
    _min.clone()
      ..add(_max)
      ..scale(0.5);