FilenameSuggestion constructor
FilenameSuggestion({
- required String filename,
- FilenameConflictAction? conflictAction,
Implementation
FilenameSuggestion({
/// The [DownloadItem]'s new target [DownloadItem.filename], as a path
/// relative to the user's default Downloads directory, possibly containing
/// subdirectories. Absolute paths, empty paths, and paths containing
/// back-references ".." will be ignored. `filename` is ignored if
/// there are any [onDeterminingFilename] listeners registered by any
/// extensions.
required String filename,
/// The action to take if `filename` already exists.
FilenameConflictAction? conflictAction,
}) : _wrapped = $js.FilenameSuggestion(
filename: filename,
conflictAction: conflictAction?.toJS,
);