BouncingWidget constructor

const BouncingWidget({
  1. required Widget child,
  2. Key? key,
  3. VoidCallback? onTap,
  4. Duration duration = const Duration(milliseconds: 100),
  5. double scale = 0.95,
  6. Curve curve = Curves.easeInOut,
  7. bool enableBounce = true,
})

Implementation

const BouncingWidget({
  required this.child,
  Key? key,
  this.onTap,
  this.duration = const Duration(milliseconds: 100),
  this.scale = 0.95,
  this.curve = Curves.easeInOut,
  this.enableBounce = true,
})  : assert(scale > 0 && scale <= 1.0),
      super(key: key);