isBaseUrlLocalhost method

bool isBaseUrlLocalhost()

Returns true if this baseURL is localhost.

Implementation

bool isBaseUrlLocalhost() {
  var uri = Uri.parse(baseURL);
  return isLocalhost(uri.host);
}