PressableBox constructor
const
PressableBox({
- Key? key,
- Style? style,
- VoidCallback? onLongPress,
- FocusNode? focusNode,
- bool autofocus = false,
- bool enableFeedback = false,
- Duration unpressDelay = kDefaultAnimationDuration,
- dynamic onFocusChange(
- bool focus
- VoidCallback? onPress,
- HitTestBehavior hitTestBehavior = HitTestBehavior.opaque,
- bool enabled = true,
- 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,
});