generate static method

String generate([
  1. bool useFormat = false
])

Implementation

static String generate([bool useFormat = false]) {
  String numbers = "";

  for (var i = 0; i < 12; i += 1) {
    numbers += Random().nextInt(9).toString();
  }

  numbers += _verifierDigit(numbers).toString();
  numbers += _verifierDigit(numbers).toString();

  return (useFormat ? format(numbers) : numbers);
}