getUrl method

Uri getUrl(
  1. String path, {
  2. Map<String, String> params = const {},
})

Implementation

Uri getUrl(String path, {Map<String, String> params = const {}}) =>
    Uri.parse("$baseUrl/$path").replace(
      queryParameters: {...params, "apiKey": apiKey},
    );