getUrl method

Uri getUrl(
  1. String url, {
  2. Map<String, String?>? parameters,
  3. String pathParameter = '',
})

Implementation

Uri getUrl(String url,
    {Map<String, String?>? parameters, String pathParameter = ''}) {
  return Uri(
      host: _baseUrl,
      port: _basePort,
      scheme: 'https',
      path: '$url/$pathParameter',
      queryParameters: parameters);
}