getDownloadLink method

String getDownloadLink ({String res })
override

Implementation

String getDownloadLink({String res}) {
  if (res == Resolution.large)
    return this.fullHDURL;
  else if (res == Resolution.medium)
    return this.largeImageURL;
  else if (res == Resolution.small)
    return this.webformatURL;
  else if (res == Resolution.tiny) return this.webformatURL;

  return this.fullHDURL ?? this.largeImageURL ?? this.webformatURL;
}