FileInfo.fromData({ required this.name, required this.file, required this.mimeType, }) : fileSize = file?.lengthSync(), url = null;