Answers for "get file type from file path flutter"

0

get file type from file path flutter

void main() {
  var completePath = "/dev/dart/work/hello/app.dart";
  var fileName = (completePath.split('/').last);
  var filePath = completePath.replaceAll("/$fileName", '');
  print(fileName);
  print(filePath);
}
Posted by: Guest on September-12-2020

Code answers related to "get file type from file path flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language