saveFileName property
String
get
saveFileName
Returns the file name to be used for saving, including the extension.
Implementation
String get saveFileName {
String? extensionName = saveFile.split(".").lastOrNull;
try {
Uri uri = saveFile.toSafeUri();
if (uri.pathSegments.isNotEmpty) {
extensionName = uri.pathSegments.last.split(".").lastOrNull;
}
} catch (e) {
logD("Uri parse error: $saveFile");
}
return '${matchUrl}.$extensionName';
}