getHost method Null safety

String? getHost()

Gets the host name or IP address.

Return the host name or IP address.