resolve method

  1. @override
BoxDecoration resolve(
  1. MixData mix
)
override

Resolves this BoxDecorationDto with a given MixData to a BoxDecoration

Implementation

@override
BoxDecoration resolve(MixData mix) {
  return BoxDecoration(
    color: color?.resolve(mix),
    image: image?.resolve(mix),
    border: border?.resolve(mix),
    borderRadius: borderRadius?.resolve(mix),
    boxShadow: boxShadow?.map((e) => e.resolve(mix)).toList(),
    gradient: gradient?.resolve(mix),
    backgroundBlendMode: backgroundBlendMode,
    shape: shape ?? BoxShape.rectangle,
  );
}