void fillRect(Rectangle<num> rectangle, int color)

Source

void fillRect(Rectangle<num> rectangle, int color) {
  var updateBatch = new BitmapDataUpdateBatch(this);
  updateBatch.fillRect(rectangle, color);
  updateBatch.update();
}