converFileName static method

String converFileName(
  1. String filePath
)

Implementation

static String converFileName(String filePath) {
  List strList = filePath.split('/');

  String name = strList.last;

  return name;
}