bounds property
Shape
bounds
The region within which the target's position must be kept.
Implementation
Shape get bounds => _bounds;
Implementation
set bounds(Shape newBounds) {
_bounds = newBounds;
if (!isValidPoint(_previousPosition)) {
_previousPosition.setFrom(_bounds.center);
if (_target != null) {
update(0);
}
}
}