Pressable constructor
const
Pressable({
- Key? key,
- required Widget child,
- bool enabled = true,
- bool enableFeedback = false,
- VoidCallback? onPress,
- HitTestBehavior hitTestBehavior = HitTestBehavior.opaque,
- VoidCallback? onLongPress,
- ValueChanged<
bool> ? onFocusChange, - bool autofocus = false,
- FocusNode? focusNode,
- FocusOnKeyCallback? onKey,
- FocusOnKeyEventCallback? onKeyEvent,
- Duration unpressDelay = kDefaultAnimationDuration,
Implementation
const Pressable({
super.key,
required super.child,
super.enabled,
super.enableFeedback,
super.onPress,
super.hitTestBehavior,
super.onLongPress,
super.onFocusChange,
super.autofocus,
super.focusNode,
super.onKey,
super.onKeyEvent,
super.unpressDelay = kDefaultAnimationDuration,
});