height property

T height

The height of the rectangle.

Implementation

T get height => _height;
void height= (T height)

Sets the height of the rectangle.

The height must be non-negative. If a negative height is supplied, it is clamped to zero.

Setting the value will change the bottom edge of the rectangle, but will not change top.

Implementation

void set height(T height) {
  if (height < 0) height = _clampToZero<T>(height);
  _height = height;
}