scale method

  1. @override
BoxShadow scale(
  1. double factor
)
override

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

Implementation

@override
BoxShadow scale(double factor) {
  return BoxShadow(
    color: color,
    offset: offset * factor,
    blurRadius: blurRadius * factor,
    spreadRadius: spreadRadius * factor,
    blurStyle: blurStyle,
  );
}