getFileName function

String getFileName(
  1. String path
)

Implementation

String getFileName(String path) {
  return path.split("/").last;
}