Creates a new Snackbar instance using the given text and duration. view is used for accessing the themed context and hierarchy, to decide where to render the Snackbar
the view to render the snackbar
the snackbar message
the snackbar duration