resolve method

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

Resolves this ShadowDto with a given MixData to a Shadow

Implementation

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

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