bounds property

Rect get bounds

Current position and size of the window.

Setting this property updates the window bounds and triggers a UI refresh. The setter is a no-op if the new value equals the current value.

Implementation

Rect get bounds => value.bounds;
set bounds (Rect value)

Updates the window bounds.

Changes take effect immediately and trigger listener notifications.

Implementation

set bounds(Rect value) {
  if (value == bounds) return;
  this.value = this.value.copyWith(bounds: () => value);
}