createUri method

Uri createUri(
  1. String? url,
  2. Map<String, dynamic>? query
)

Implementation

Uri createUri(String? url, Map<String, dynamic>? query) {
  if (baseUrl != null) {
    url = baseUrl! + url!;
  }
  final uri = Uri.parse(url!);
  if (query != null) {
    return uri.replace(queryParameters: query);
  }
  return uri;
}