Mask.graphics(Graphics graphics)

Create a custom mask defined by a Graphics object.

Source

factory Mask.graphics(Graphics graphics) {
  return new _GraphicsMask(graphics);
}