kApiBaseURL top-level constant

String const kApiBaseURL

The base URL for the OpenWeatherMap API.

This constant holds the base URL for accessing the OpenWeatherMap API endpoints. It is used to construct the full URL for API requests.

Example usage:

final url = '$kApiBaseURL/weather?q=London&appid=YOUR_API_KEY';

Implementation

const kApiBaseURL = 'https://api.openweathermap.org/data/2.5/';