locale function

String locale()

It returns the state of a random address.

Returns: The state of the address.

Implementation

String locale() {
  final randomAddress = address();
  if (randomAddress.state == null) {
    return locale();
  }
  return randomAddress.state!;
}