street function

String street()

Return a randomly generated address street.

Returns: The street from the randomly generated address.

Implementation

String street() {
  final randomAddress = address();
  if (randomAddress.address1 == null) {
    return street();
  }
  return randomAddress.address1!;
}