Snapshot.appendOutsetShadow

Appends an outset shadow node around the box given by @outline.

class Snapshot
void
appendOutsetShadow
(,,
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 outside

blurRadius float

how much blur to apply to the shadow

Meta