decodeFileName method

String? decodeFileName()

Tries to find and decode the associated file name

Implementation

String? decodeFileName() {
  final fileName = MailCodec.decodeHeader(
      getHeaderContentDisposition()?.filename ??
          getHeaderContentType()?.parameters['name']);
  return fileName?.replaceAll('\\"', '"');
}