PressableBox constructor

const PressableBox({
  1. Key? key,
  2. Style? style,
  3. VoidCallback? onLongPress,
  4. FocusNode? focusNode,
  5. bool autofocus = false,
  6. bool enableFeedback = false,
  7. Duration unpressDelay = kDefaultAnimationDuration,
  8. dynamic onFocusChange(
    1. bool focus
    )?,
  9. VoidCallback? onPress,
  10. HitTestBehavior hitTestBehavior = HitTestBehavior.opaque,
  11. bool enabled = true,
  12. required Widget child,
})

Implementation

const PressableBox({
  super.key,
  this.style,
  this.onLongPress,
  this.focusNode,
  this.autofocus = false,
  this.enableFeedback = false,
  this.unpressDelay = kDefaultAnimationDuration,
  this.onFocusChange,
  this.onPress,
  this.hitTestBehavior = HitTestBehavior.opaque,
  this.enabled = true,
  required this.child,
});