UiRect constructor

UiRect(
  1. double left,
  2. double top,
  3. double right,
  4. double bottom,
)

Creates a new UiRect from the given coordinates.

Implementation

UiRect(double left, double top, double right, double bottom)
  : assert(bottom >= top),
    assert(right >= left),
    _rect = ui.Rect.fromLTRB(left, top, right, bottom);