HapticButton constructor
const
HapticButton({
- required VoidCallback onPressed,
- required HapticPattern pattern,
- required Widget child,
- VoidCallback? onHapticComplete,
- OnHapticButtonError? onError,
- bool enabled = true,
- ButtonStyle? style,
- Duration hapticTimeout = const Duration(seconds: 5),
- Key? key,
Creates a haptic button with comprehensive error handling
Implementation
const HapticButton({
required this.onPressed,
required this.pattern,
required this.child,
this.onHapticComplete,
this.onError,
this.enabled = true,
this.style,
this.hapticTimeout = const Duration(seconds: 5),
super.key,
});