blurredBackgroundColor method

Color blurredBackgroundColor(
  1. bool applyBlur,
  2. Color color
)

Returns a blurred version of the background color usually add some transparency to the color

Implementation

Color blurredBackgroundColor(bool applyBlur, Color color) =>
    applyBlur ? color.withValues(alpha: 0.5) : color;