initShake method

Future<void> initShake()

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);
      },
    );
  }
}