invert method

Shaper invert()

invert is a function that returns a new Shaper that invert the shape.

Implementation

Shaper invert() {
  return Shaper(
    path: (size) {
      return Path.combine(
        PathOperation.difference,
        Path()..addRect(Rect.fromLTWH(0, 0, size.width, size.height)),
        path(size),
      );
    },
  );
}