[Snackbar] Close button
It looks like the close button should be available in Snackbar out of the box:

Hi @pubiqq,
Thanks for finding details like this!
I don't think the close icon should be shown by default. Under the Anatomy section on the component's spec page it mentions:
4. Icon (optional close affordance)
I'm going to close this but feel free to re-open if you'd like to discuss or feel differently.
@hunterstich, I don't mean the close button should be shown by default. I mean there should be an option to enable the close button with the API, something like:
Snackbar.make(...)
.setCloseButtonEnabled(enabled)
...
Ah okay. Apologies for misunderstanding
Is there a workaround to display a close icon?
@hunterstich Hi! Is there any news on this issue?
@hunterstich I am also impacted
Is there any workaround in 2024? I cannot find any example also :/.
Is there any workaround in 2025?
Is there any workaround in 2025?
Do this work? https://github.com/android/snippets/issues/290#issuecomment-2754270578
Can you check it?