appName static method

String appName(
  1. String url
)

Obtain the file name according to the download address

Implementation

static String appName(String url) {
  return url.substring(url.lastIndexOf("/") + 1);
}