Snapshot.appendInsetShadow

Appends an inset shadow into the box given by @outline.

class Snapshot
void
appendInsetShadow
(,,
float dx
,
float dy
,
float spread
,)

Parameters

outline RoundedRect

outline of the region surrounded by shadow

color RGBA

color of the shadow

dx float

horizontal offset of shadow

dy float

vertical offset of shadow

spread float

how far the shadow spreads towards the inside

blurRadius float

how much blur to apply to the shadow

Meta