createUri method
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;
}