refreshAssetProperties static method

Future<AssetEntity?> refreshAssetProperties(
  1. String id
)

Refresh the property of asset.

Implementation

static Future<AssetEntity?> refreshAssetProperties(String id) async {
  final Map? map = await _plugin.getPropertiesFromAssetEntity(id);

  final asset = ConvertUtils.convertToAsset(map);

  if (asset == null) {
    return null;
  }

  return asset;
}