mirror of
https://github.com/foss42/apidash.git
synced 2025-12-03 03:17:00 +08:00
format
This commit is contained in:
@@ -5,9 +5,12 @@ class RandomStringGenerator {
|
||||
'AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz1234567890';
|
||||
static Random rnd = Random();
|
||||
|
||||
static String getRandomString(int length) =>
|
||||
String.fromCharCodes(Iterable.generate(
|
||||
length, (_) => _chars.codeUnitAt(rnd.nextInt(_chars.length))));
|
||||
static String getRandomString(int length) => String.fromCharCodes(
|
||||
Iterable.generate(
|
||||
length,
|
||||
(_) => _chars.codeUnitAt(rnd.nextInt(_chars.length)),
|
||||
),
|
||||
);
|
||||
|
||||
static String getRandomStringLines(int lines, int length) {
|
||||
List<String> result = [];
|
||||
|
||||
Reference in New Issue
Block a user