position property

Vector2 position
inherited

Implementation

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

Implementation

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

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