Create a custom mask defined by a Shape object.
factory Mask.shape(Shape shape) { return new _ShapeMask(shape); }