Hosts.multiple constructor
Hosts.multiple({})
Creates a hosts config with multiple host of each type.
Implementation
Hosts.multiple({
List<ApiHost> api = defaultApiHosts,
List<ImageHost> image = defaultImageHosts,
List<ThumbnailHost> thumbnail = defaultThumbnailHosts,
}) : hosts = {
HostType.api: api,
HostType.image: image,
HostType.thumbnail: thumbnail,
} {
if (api.isEmpty || image.isEmpty || thumbnail.isEmpty)
throw ArgumentError('Missing hosts definition.');
}