AppFile.local constructor
Implementation
factory AppFile.local({
required String path,
String fileKey = '',
String? fileName,
}) {
final resolvedName = fileName ?? _nameFromPath(path);
final resolvedExtension = _resolveExtension(
fileName: resolvedName,
filePath: path,
);
return AppFile(
fileKey: fileKey,
fileName: resolvedName,
filePath: path,
fileExtension: resolvedExtension,
fileType: _resolveFileType(
fileUrl: null,
fileExtension: resolvedExtension,
),
xFile: XFile(path, name: resolvedName),
);
}