drawGRect method

Graphics drawGRect(
  1. GRect rect
)

Draws a rectangle using the specified GRect.

The rect parameter is a GRect object that defines the position and size of the rectangle to be drawn.

The method returns this, which allows for method chaining.

Implementation

Graphics drawGRect(GRect rect) {
  _path!.addRect(rect.toNative());
  return this;
}