static String generateOTP([int otpLength = 6]) { Random random = Random(); String otp = ''; for (int i = 0; i < otpLength; i++) { otp += random.nextInt(10).toString(); } return otp; }