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 != super.position) {
    super.position = value;
    rect.position = value;
    center = value.translated(radius, radius);
    offsetToDraw = Offset(position.x + radius, position.y + radius);
  }
}