tinted static method

List<BoxShadow> tinted(
  1. Color color, {
  2. double blurRadius = 16,
  3. double offsetY = 4,
  4. double opacity = 0.18,
})

Returns a shadow list tinted with color.

Implementation

static List<BoxShadow> tinted(
  Color color, {
  double blurRadius = 16,
  double offsetY = 4,
  double opacity = 0.18,
}) =>
    <BoxShadow>[
      BoxShadow(
        color: color.withValues(alpha: opacity),
        blurRadius: blurRadius,
        offset: Offset(0, offsetY),
      ),
    ];