DropShadow constructor

const DropShadow({
  1. required Widget child,
  2. double blurRadius = 10.0,
  3. double borderRadius = 0.0,
  4. Offset offset = const Offset(0, 8),
  5. double opacity = 1.0,
  6. double spread = 1.0,
  7. Color? color,
  8. Key? key,
})

Create DropShadow for any kind of widget with default values

Implementation

const DropShadow({
  required this.child,
  this.blurRadius = 10.0,
  this.borderRadius = 0.0,
  this.offset = const Offset(0, 8),
  this.opacity = 1.0,
  this.spread = 1.0,
  this.color,
  super.key,
});