scale method

Shadow scale(
  1. double factor
)

Returns a new shadow with its offset and blurRadius scaled by the given factor.

Implementation

Shadow scale(double factor) {
  return Shadow(
    color: color,
    offset: offset * factor,
    blurRadius: blurRadius * factor,
  );
}