Stack mask(Widget maskWidget) { return Stack(children: [this, maskWidget.positioned(left: 0, top: 0, bottom: 0, right: 0)]); }