shouldCaptureRageClickScreenshot method

bool shouldCaptureRageClickScreenshot()

Verificar si debe capturarse screenshot en rage click

Implementation

bool shouldCaptureRageClickScreenshot() {
  if (!_enableRageClickScreenshot) return false;

  final random = DateTime.now().millisecondsSinceEpoch / 1000000.0;
  final randomPercent = (random % 1.0);

  return randomPercent < _rageClickScreenshotPercent;
}