Hapus ekstensi file dari path dart

  var fileToCompressPath = fileToCompress.absolute.path;
  final fileFormat = fileToCompressPath.substring(fileToCompressPath.lastIndexOf('.'));
  fileToCompressPath = fileToCompressPath.replaceAll(fileFormat, '');
loonix