1. DomName('Path2D.rect')
  2. DocsEditable()
  3. Experimental()
void rect(num x, num y, num width, num height)

Source

@DomName('Path2D.rect')
@DocsEditable()
@Experimental() // untriaged
void rect(num x, num y, num width, num height) => _blink.BlinkPath2D.instance.rect_Callback_4_(this, x, y, width, height);