Currently, there doesn't seem to be a way to customise the duration of how long the snackbar would persist on the screen before it gets dismissed automatically.
The duration parameter is used for how long the animation would take.
I don't want to persist the snackbar for eternity but would like it to get dismissed after like 5 seconds automatically. Is there a way to control that?