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