getMediaUrl method

Future<String?> getMediaUrl(
  1. AssetEntity entity
)

Implementation

Future<String?> getMediaUrl(AssetEntity entity) async {
  if (PlatformUtils.isOhos) {
    return entity.id;
  }
  return _channel.invokeMethod(
    PMConstants.mGetMediaUrl,
    <String, dynamic>{'id': entity.id, 'type': entity.typeInt},
  );
}