getRandomString static method

String getRandomString(
  1. int length
)

Implementation

static String getRandomString(int length) =>
    String.fromCharCodes(Iterable.generate(
        length, (_) => _chars.codeUnitAt(Random().nextInt(_chars.length))));