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

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

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-math/MutableRectangle/height.html