UPressable constructor

const UPressable({
  1. required Widget child,
  2. required VoidCallback onTap,
  3. Key? key,
  4. double pressedScale = 0.9,
  5. Duration duration = const Duration(milliseconds: 120),
})

Implementation

const UPressable({
  required this.child,
  required this.onTap,
  super.key,
  this.pressedScale = 0.9,
  this.duration = const Duration(milliseconds: 120),
});