CleanFileName constructor

const CleanFileName({
  1. required String fileName,
})

Removes potentially dangerous characters from the name of a file. The encoding of the file name is supposed to be UTF-8. Returns an empty string on failure. Can be called synchronously

Implementation

const CleanFileName({
  required this.fileName,
});