position property

Vector2 get position
inherited

Implementation

Vector2 get position => _position;
  1. @override
set position (Vector2 value)
override

Implementation

@override
set position(Vector2 value) {
  if (value != position) {
    super.position = value;

    for (var i = 0; i < points.length; i++) {
      points[i] = relativePoints[i] + value;
    }

    rect.position = Vector2(value.x + _minX, value.y + _minY);
  }
}