url property
String
get
url
Gets the base URL for service requests.
This property returns the appropriate service URL based on the current configuration. In development mode with a custom service URL, it returns the custom URL. Otherwise, it returns the standard service endpoint.
Returns
The base URL string for service requests
Implementation
String get url {
if (_config.development?.enabled == true &&
_config.service?.baseUrl != null) {
return _config.service!.baseUrl!;
}
return "${_config.serviceUrl}/service";
}