SpringButton constructor

const SpringButton({
  1. Key? key,
  2. required Widget child,
  3. VoidCallback? onPressed,
  4. double pressedScale = 0.93,
})

Creates a press-spring wrapper around child.

Implementation

const SpringButton({
  super.key,
  required this.child,
  this.onPressed,
  this.pressedScale = 0.93,
});