Mask.rectangle(num x, num y, num width, num height)

Create a rectangular mask.

Source

factory Mask.rectangle(num x, num y, num width, num height) {
  var rectangle = new Rectangle<num>(x, y, width, height);
  return new _RectangleMask(rectangle);
}