long static method

String long([
  1. int partsCount = 3,
  2. int charsCount = 6
])

Generates a longer ID by joining multiple short() parts with dashes.

Example: ABc12X-9YkWqE-TmN82z

Implementation

static String long([int partsCount = 3, int charsCount = 6]) {
  List<String> v = [];
  for (var i = 0; i < partsCount; i++) {
    v.add(short(charsCount));
  }
  return v.join("-");
}