relativeToParent property

  1. @override
bool relativeToParent
getter/setter pairoverride-getter

Set to true to place the Mask relative to the DisplayObjects parent. The default value is false and therefore the mask is placed relative to the DisplayObject where it is applied to.

Implementation

@override
bool relativeToParent = false;