NesDropshadow constructor

const NesDropshadow({
  1. required Widget child,
  2. int x = 2,
  3. int y = 2,
  4. Key? key,
})

Renders a dropshadow around the child in the NES style.

Implementation

const NesDropshadow({
  required this.child,
  this.x = 2,
  this.y = 2,
  super.key,
}) : assert(
        x >= 0 && y >= 0,
        'Negative dropshadow offsets are not supported.',
      );