getDownloadLink method

  1. @override
String? getDownloadLink({
  1. String? res,
})
override

Implementation

@override
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;
}