AssetModel.fromXFile constructor
AssetModel.fromXFile(
- XFile file
Create asset model from xfile
Implementation
factory AssetModel.fromXFile(XFile file) {
return AssetModel(
id: file.path,
file: file,
type: AssetType.image,
);
}