ShadowOptions constructor

const ShadowOptions({
  1. Color? overlayColor,
  2. double scale = 1,
  3. Offset offset = const Offset(10, 10),
  4. double blur = 4,
})

Implementation

const ShadowOptions({
  this.overlayColor,
  this.scale = 1,
  this.offset = const Offset(10, 10),
  this.blur = 4,
}) :
      // the scale need to be greater than 0
      assert(scale >= 0, "the scale parameter need to be greater than 0");