You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had the same issue on my web project using flutter null safety.
This is the code used for solution: try { bool? hasVibration = await Vibration.hasVibrator(); if (hasVibration != null && hasVibration) { bool? hasCustomVibration = await Vibration.hasCustomVibrationsSupport(); if (hasCustomVibration != null && hasCustomVibration) { await Vibration.vibrate(duration: c.duration!); } else { await Vibration.vibrate(); } } }...
On Vibration.vibrate() it throws a message null check operator called on null value
Flutter Version 2.8.1
Dart Version 2.15.1
The text was updated successfully, but these errors were encountered: