bounds property

Rect get bounds

The current layout bounds for this component instance.

Throws an Exception if accessed before being set by the layout engine.

Implementation

Rect get bounds {
  if (_bounds == null) throw Exception('Bounds for $this not set yet');
  return _bounds!;
}
set bounds (Rect rect)

Updates the layout bounds for this component instance.

Implementation

set bounds(Rect rect) => _bounds = rect;