selectionChanged static method
Trigger selection change haptic feedback
Implementation
static Future<void> selectionChanged() async {
try {
await SystemChannels.platform
.invokeMethod('HapticFeedback.selectionChanged');
} catch (e) {
// Ignore errors on platforms that don't support haptic feedback
}
}