Notification
Dispatch a notification

Usage:
function alertYes() {
  alert('Yes');
}
sw.notification.dispatch({
    title: 'Your title',
    message: 'Your message',
    variant: 'success',
    appearance: 'notification',
    growl: true,
    actions: [
        {
            label: 'Yes',
            method: alertYes
        },
        {
            label: 'No',
            method: () => {
                alert('No')
            }
        },
        {
            label: 'Cancel',
            route: 'https://www.shopware.com',
            disabled: false,
        }
    ]
})
Parameters:
| Name | Required | Default | Description | 
|---|---|---|---|
| title | true | Defines a notification's title. | |
| message | true | Defines a notification's main expression or message to the user. | |
| variant | false | info | Defines the notification type. Available varianttypes aresuccess,info,warninganderror. | 
| appearance | false | notification | Changes the style of a notification. Use systemfor technical notifications thrown by the application. Otherwise keep the default valuenotification. | 
| growl | false | true | Displays a notification that is overlaying any module. Use falseto display the notification in the notification center (bell symbol) only. | 
| actions | false | [] | Adds clickable buttons to the notification. Each button with a labelcan trigger amethodor open aroute(internal route or external link). Buttons can also be disabled using the attributedisabled. | 
Return value:
Returns a promise without data.