getBoxDecorationShadow method
BoxDecoration
getBoxDecorationShadow(
- {Color? color = Colors.transparent,
- BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(20.0)),
- ShadowType? shadowType = ShadowType.DARK,
- LightSourcePosition? lightSourcePosition = LightSourcePosition.TOP_LEFT,
- ShadowIntensity? shadowIntensity = ShadowIntensity.NORMAL,
- ShadowHardness? shadowHardness = ShadowHardness.NORMAL}
Implementation
BoxDecoration getBoxDecorationShadow(
{
Color? color = Colors.transparent,
BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(20.0)),
ShadowType? shadowType = ShadowType.DARK,
LightSourcePosition? lightSourcePosition = LightSourcePosition.TOP_LEFT,
ShadowIntensity? shadowIntensity = ShadowIntensity.NORMAL,
ShadowHardness? shadowHardness = ShadowHardness.NORMAL,
}
) {
return BoxDecoration(
color: color,
borderRadius: borderRadius,
boxShadow: getBoxShadow(
shadowType: shadowType,
lightSourcePosition: lightSourcePosition,
shadowIntensity: shadowIntensity,
shadowHardness: shadowHardness
)
);
}