getFileName method

String getFileName(
  1. String path
)

Implementation

String getFileName(String path) {
  final split = path.split("/");
  final fileName = split.last.split(".").first;
  return fileName;
}