fromId static method
Future<AssetPathEntity>
fromId(
- String id, {
- FilterOptionGroup? filterOption,
- RequestType type = RequestType.common,
- int albumType = 1,
Obtain an entity from ID.
This method is not recommend in general, since the corresponding folder could be deleted in anytime, which will cause properties invalid.
Implementation
static Future<AssetPathEntity> fromId(
String id, {
FilterOptionGroup? filterOption,
RequestType type = RequestType.common,
int albumType = 1,
}) async {
assert(albumType == 1 || Platform.isIOS || Platform.isMacOS);
final AssetPathEntity entity = await obtainPathFromProperties(
id: id,
albumType: albumType,
type: type,
optionGroup: filterOption ?? FilterOptionGroup(),
);
return entity;
}