Clicking on the Notification Pane on the top-right corner of your screen on macOS will open the Notification sidebar. The sidebar can be used to turn on/off notifications. However, during a screen sharing session, one might not want to open the sidebar just to mute the notifications.
Option + Click
on the Notification sidebar will toggle "Do Not Disturb" mode on and off.