Gets the path of a file, if the file is XFile.
String get xFilePath { if (content is XFile) { return (content as XFile).path; } return ''; }