Spec-Zone.ru › Dart 2

dart:math

width property

T width

The width of the rectangle.

Implementation

T get width => _width;
void width=(T width)

Sets the width of the rectangle.

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

Setting the value will change the right edge of the rectangle, but will not change left.

Implementation

set width(T width) {
  if (width < 0) width = _clampToZero<T>(width);
  _width = width;
}

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-math/MutableRectangle/width.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API