getRandomString static method

String getRandomString(
  1. int length
)

generate random string. May not be unique!!

Implementation

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