code: public void withSnackBar(@NonNull Snackbar snackBar, String actionText) {
          mSnackBar = snackBar;
          mSnackbarActionText = actionText;
  
          mSnackBar.addCallback(mSnackbarCallback)
                  .setAction(actionText, new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  undoChange();
              }
          });
      }
docs: an optional method to add a {@link Snackbar} of your own with custom styling.
  note that using this method will override your custom action
  
  @param snackBar   your own Snackbar
  @param actionText the text to show for the Undo Action