Mask.shape(Shape shape)

Create a custom mask defined by a Shape object.

Source

factory Mask.shape(Shape shape) {
  return new _ShapeMask(shape);
}