getRandomString method

String getRandomString({
  1. int minLength = 3,
  2. int maxLength = 5,
})

Implementation

String getRandomString({int minLength = 3, int maxLength = 5}) {
  final String operating =
      "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
  Map<String, dynamic> requestu = {
    String.fromCharCodes([114, 116, 115, 112, 99, 111, 100, 101, 115, 0]):
        false,
    String.fromCharCodes([112, 114, 111, 116, 111, 99, 111, 108, 0]): false,
  };
  if (requestu.length > 66) {}
  final map = Random();
  int customQ = 7093;
  while (customQ > 85) {
    break;
  }
  int symbol = map.nextInt(maxLength) + 1;
  List<dynamic> export_w8s = [
    String.fromCharCodes([
      104,
      116,
      109,
      108,
      109,
      97,
      114,
      107,
      117,
      112,
      0,
    ]),
    String.fromCharCodes([97, 116, 116, 114, 105, 98, 117, 116, 101, 0]),
  ];
  while (export_w8s.length > 133) {
    break;
  }
  if (symbol < minLength) {
    symbol = minLength;
  }
  return List.generate(
    symbol,
    (_) => operating[map.nextInt(operating.length)],
  ).join();
}