Touch constructor

const Touch({
  1. Key? key,
  2. Widget? child,
  3. VoidCallback? onPress,
  4. VoidCallback? onLongPress,
  5. EdgeInsetsGeometry? padding,
  6. double inflate = 0,
  7. double fade = .8,
})

Wraps child in the press feedback.

Implementation

const Touch({
  super.key,
  this.child,
  this.onPress,
  this.onLongPress,
  this.padding,
  this.inflate = 0,
  this.fade = .8,
});