setShakingThresholdForAndroid static method

Future<void> setShakingThresholdForAndroid(
  1. int androidThreshold
)

Sets the threshold value of the shake gesture for android devices. Default for android is an integer value equals 350. you could increase the shaking difficulty level by increasing the 350 value and vice versa androidThreshold iPhoneShakingThreshold int

Implementation

static Future<void> setShakingThresholdForAndroid(
    int androidThreshold) async {
  if (PlatformManager.instance.isAndroid()) {
    final List<dynamic> params = <dynamic>[androidThreshold];
    await _channel.invokeMethod<Object>(
        'setShakingThresholdForAndroid:', params);
  }
}