Create a rectangle spanned by
(left, top) and
The rectangle contains the points with x-coordinate between
left + width, and with y-coordinate between
top + height, both inclusive.
height should be non-negative. If
height are negative, they are clamped to zero.
height are zero, the "rectangle" comprises only the single point
const Rectangle(this.left, this.top, T width, T height) : this.width = (width < 0) ? -width * 0 : width, // Inline _clampToZero. this.height = (height < 0) ? -height * 0 : height;
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.