resolve method

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

Resolves this BoxShadowDto with a given MixData to a BoxShadow

Implementation

@override
BoxShadow resolve(MixData mix) {
  const defaultShadow = BoxShadow();

  return BoxShadow(
    color: color?.resolve(mix) ?? defaultShadow.color,
    offset: offset ?? defaultShadow.offset,
    blurRadius: blurRadius ?? defaultShadow.blurRadius,
    spreadRadius: spreadRadius ?? defaultShadow.spreadRadius,
  );
}