AssetModel.fromXFile constructor

AssetModel.fromXFile(
  1. XFile file
)

Create asset model from xfile

Implementation

factory AssetModel.fromXFile(XFile file) {
  return AssetModel(
    id: file.path,
    file: file,
    type: AssetType.image,
  );
}