set method

dynamic set(
  1. T left,
  2. T top,
  3. T width,
  4. T height,
)

Sets the properties of this rectangle.

  • left: The new x-coordinate of the left edge.
  • top: The new y-coordinate of the top edge.
  • width: The new width.
  • height: The new height.

Implementation

set(T left, T top, T width, T height) {
  this
    ..left = left
    ..top = top
    ..width = width
    ..height = height;
}