address static method
Returns a random, mocked street address. The number is wholly random and the street suffix is randomly selected out of 6 common suffixes.
The street name is by default selected out of the 100 most used english words. If you would like, you can pass the name of the street to the street parameter.
Implementation
static String address({String? street}) {
var dignum = integer(min: 3, max: 4);
var number = '${digits(dignum)} ';
street ??= capitalize(words.nouns[random.nextInt(nouns)]) + ' ';
var suffix = addressSuffix[random.nextInt(6)];
return number + street + suffix;
}