getUrl method

Uri getUrl({
  1. API? api,
  2. Hosts? hosts,
})

Returns image url using hosts settings from api client or provided hosts config.

Throws ArgumentError if hosts and api are both missing.

Implementation

Uri getUrl({
  API? api,
  Hosts? hosts,
}) => get_image_url.getImageUrl(this, api: api, hosts: hosts);