initShake method
Implementation
Future<void> initShake() async {
// shake is possible in only actual mobile devices
if (isBugReportingEnabled && await isRealPhone()) {
detector = ShakeDetector.autoStart(
shakeThresholdGravity: 30.0,
onShake: () {
openBugReport(context);
},
);
}
}