SkiaSharp gradient overlay with inset control

A little while ago I had to include a type of gradient effect I hadn't heard of before, a gradient with an inset. Essentially this meant having the gradient stay a solid colour for say 20% of it and then fade to almost nothing at the end. The designers point of this was to