toBoxDecoration method

BoxDecoration toBoxDecoration(
  1. BuildContext context
)

Implementation

BoxDecoration toBoxDecoration(BuildContext context) => BoxDecoration(
    color: FLThemeTool.parseColor(color, context),
    image: image?.toDecorationImage(),
    border: border?.toBorder(context),
    borderRadius: borderRadius?.toBorderRadius(),
    boxShadow: boxShadow != null
        ? boxShadow!
            .map((FLDyUnitBoxShadow shadow) => shadow.toBoxShadow(context))
            .toList()
        : null,
    shape: flStringToBoxShape(shape) ?? BoxShape.rectangle);