convertFiles static method
paths
文件地址转换 ExtendedAssetModel
默认类型为 AssetType.image
Implementation
static ExtendedAssetEntity? convertFiles(File file,
{AssetType assetsType = AssetType.image}) {
if (file.existsSync()) {
return ExtendedAssetEntity.fromFile(file: file, assetType: assetsType);
}
return null;
}