HttpUrlsEnveiroment constructor

HttpUrlsEnveiroment({
  1. String? baseUrl,
  2. String? imageBaseUrl,
})

Factory constructor to get the singleton instance. Optionally sets the base URL if provided.

Implementation

factory HttpUrlsEnveiroment({String? baseUrl, String? imageBaseUrl}) {
  if (baseUrl != null) _baseUrlEnvet.baseUrl = baseUrl;
  if (imageBaseUrl != null) _baseUrlEnvet.imageBaseUrl = imageBaseUrl;

  return _baseUrlEnvet;
}