'Flutter directly run some Skia operations?

I have a widget showing an image and some dart:ui Paths. The problem is, I need some graphics operations to this combination. For example (as a simplified requirement), I need to subtract the image by the Paths, dilate it (Skia does have a dilate image filter), and combine with the image and Paths, etc.

The problem is, I have not found any way to directly manipulate at the Skia level. I wonder how can I do this? Thanks for any hints!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source