boxShadow method

void boxShadow({
  1. Color color = const Color(0x33000000),
  2. double blur = 0.0,
  3. Offset offset = Offset.zero,
  4. double spread = 0.0,
})
inherited

If defined while the elevation method is defined, the last one defined will be the one applied.

Implementation

void boxShadow(
        {Color color = const Color(0x33000000),
        double blur = 0.0,
        Offset offset = Offset.zero,
        double spread = 0.0}) =>
    _styleModel.boxShadow = [
      BoxShadow(
        color: color,
        blurRadius: blur,
        spreadRadius: spread,
        offset: offset,
      ),
    ];