getLocalFileNameForUrl static method

String getLocalFileNameForUrl(
  1. String url
)

Implementation

static String getLocalFileNameForUrl(String url) {
  String localFileName = "";
  var parts = url.split("/");
  if (parts.length > 0) {
    localFileName = parts[parts.length - 1];
  }
  return localFileName;
}