height property - MutableRectangle class - dart:math library (original) (raw)

description

T getheight

The height of the rectangle.

Implementation

T get height => _height;

setheight (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

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