DEV Community

My Car
My Car

Posted on

Which code should I use to provide the ID to another StatelessWidget?

I want to give the ID to another StatelessWidget. But, there is two way for me to choose.

The first way is to use the model's ID. The data for this model comes from a Firebase Cloud Firestore document and I use the original ID as the document id.

Top comments (0)