nextString method Null safety

String nextString(
  1. int minLength,
  2. int maxLength
)

Generates a random string, consisting of upper and lower case letters (of the English alphabet), digits (0-9), and symbols ('_,.:-/.[].{},#-!,$=%.+^.&*-() ').

  • minLength (optional) minimum string length.
  • maxLength maximum string length. Returns a random string.