what is the equivalent class for ExternalResource class in vaadin 14 flow ?

I am working vaadin 14 upgrade from vaadin 8. I just want to know the right equivalent for ExternalResource class in vaadin 14.

Please advise / suggest the correct equivalent for ExternalResource class in vaadin 14.

Answer to your question depends on context. But lets say you have an Image component, which is using external URL, in Vaadin 8 you needed to wrap that with ExternalResource. We have simplified the API in Vaadin 14, so you can just set the URL as string directly to Image.

image.setSrc(url);

I have noticed that you have plenty of similar questions.

I would recommend you to go thru our Vaadin 8 to 14 migration training material here

https://vaadin.com/learn/training/v14-migrate-from-v8

It is a heavy package which covers the significant differences. So you will notice that in many places your migration is not just mechanistic search replace job, but you actually in some places need to rethink the logic a bit.