getRandomString static method

String getRandomString({
  1. int length = 10,
})

Implementation

static String getRandomString({int length = 10}) {
  var generator = RandomStringGenerator(
    fixedLength: length,
  );

  return generator.generate();
}