stringAlphaNumeric method

String stringAlphaNumeric(
  1. int length
)

Generate random string by alphanumeric.

For alpha lowercase uppercase included.

Implementation

String stringAlphaNumeric(int length) {
  const chars =
      "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz1234567890";

  return string(chars, length);
}