bounce method

Widget bounce({
  1. required VoidCallback onPressed,
  2. double scaleFactor = 1,
  3. Duration duration = const Duration(milliseconds: 200),
  4. bool canReverse = false,
  5. bool isScrollable = false,
})

Implementation

Widget bounce({
  required VoidCallback onPressed,
  double scaleFactor = 1,
  Duration duration = const Duration(milliseconds: 200),
  bool canReverse = false,
  bool isScrollable = false,
}) {
  return CustomBounceWidget(
    onPressed: onPressed,
    scaleFactor: scaleFactor,
    duration: duration,
    canReverse: canReverse,
    isScrollable: isScrollable,
    child: this,
  );
}