bounds property

Shape get bounds

The region within which the target's position must be kept.

Implementation

Shape get bounds => _bounds;
set bounds (Shape newBounds)

Implementation

set bounds(Shape newBounds) {
  _bounds = newBounds;
  if (!isValidPoint(_previousPosition)) {
    _previousPosition.setFrom(_bounds.center);
    if (_target != null) {
      update(0);
    }
  }
}